Skip to content

Documentation

Extensive Documentation for PowerPack & WooPack to help you with common questions and issues.

PowerPack

⌘K
  1. Home
  2. Docs
  3. PowerPack
  4. Modules
  5. Content Grid
  6. Order By is not working?

Order By is not working?

If you are using the Post Type Order plugin, please note that it overrides the ordering in WP_Query. As a result, any custom order settings applied in the Content Grid or other modules will not take effect.

To fix this, add the following code to your theme’s functions.php file, or use a plugin like Code Snippets:

// Prevent Post Type Order plugin ordering posts in Content Grid or Posts module.
add_filter( 'fl_builder_loop_query_args', function( $args ) {
    $args['ignore_custom_sort'] = true;
    return $args;
}, 10, 1 );
×