|

How to Exclude your Current Post from Advanced Post module?

Many times, you would want to display all the posts using an Advanced Post module. But, at the same time you might want to exclude a post which is current. You can do this using the Advanced Post Module action with the Ultimate Addons for Beaver Builder.

You can paste the following code in the functions.php file of your theme / child theme to exclude the current post from rendering.

// Helps one exclude current post form the loop.
function uabb_advance_post_custom_args( $args ) {
// Do any operation with the $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 );

Was this doc helpful?
What went wrong?

We don't respond to the article feedback, we use it to improve our support content.

On this page

Download is Just A Click Away!

Enter your email address and be the first to learn about updates and new features.

Download Free Ultimate Addon For Beaver Builder Plugin - Modal Popup Form

Free Download

Enter your name & email address to download this awesome freebie.

Free Download

Enter your name & email address to download this awesome freebie.

Free Download

Enter your name & email address to download this awesome freebie.

Free Download

Enter your name & email address to download this awesome freebie.

Free Download

Enter your name & email address to download this awesome freebie.

Free Download

Enter your name & email address to download this awesome freebie.

Free Download

Enter your name & email address to download this awesome freebie.

Free Download

Enter your name & email address to download this awesome freebie.

Free Download

Enter your name & email address to download this awesome freebie.

Free Download

Enter your name & email address to download this awesome freebie.

Free Download

Enter your name & email address to download this awesome freebie.

Free Download

Enter your name & email address to download this awesome freebie.

Scroll to Top