Skip to content

Instantly share code, notes, and snippets.

@Pross
Created August 23, 2018 17:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Pross/3fa5621f461bf58b87ecdf4e834d4879 to your computer and use it in GitHub Desktop.
Save Pross/3fa5621f461bf58b87ecdf4e834d4879 to your computer and use it in GitHub Desktop.
<?php
add_action( 'pre_get_posts', function ( $q ) {
if ( true === $q->get( 'wpse_is_home' ) ) {
$q->is_home = true;
}
});
function fl_builder_loop_query_args_filter( $query_args ) {
$query_args['ignore_sticky_posts'] = false;
$query_args['wpse_is_home'] = true;
return $query_args;
}
add_filter( 'fl_builder_loop_query_args', 'fl_builder_loop_query_args_filter' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment