customized pods query
-
Hello and many thanks for this wonderful plugin!
Is there a way to exclude the rendering of the current post from the loop of a customized pods query (relation from current item) in the posts module of beaver builder?Many thanks in advance!
The following code excludes current posts from custom queries but not from pods relationsip queries:
function uabb_advance_post_custom_args( $args ) {
$args[‘post__not_in’] = array( get_the_ID() );
return $args;
}
add_filter( ‘uabb_blog_posts_query_args’, ‘uabb_advance_post_custom_args’, 10, 1 );
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
The topic ‘customized pods query’ is closed to new replies.