No results found. Try again with different words?

Search must be at least 3 characters.

    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 article helpful?

    Did not find a solution? We are here to help you succeed.

    Related Docs

    Grab this rare opportunity to save up to 50%

    WOAH, HOLD ON THERE!

    Don't Miss Our Biggest Discount

    00
    Months
    00
    Days
    00
    Hours
    00
    Minutes
    00
    Seconds

    You are backed by 100% risk-free money-back guarantee.

    Grab Our Biggest Discount Of All Time. Don’t Miss Out!

    00
    Months
    00
    Days
    00
    Hours
    00
    Minutes
    00
    Seconds

    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