Skip to content

Instantly share code, notes, and snippets.

@Pross Pross/functions.php
Created Aug 23, 2018

Embed
What would you like to do?
<?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
You can’t perform that action at this time.