• Resolved crael

    (@crael)


    Hello,

    Is it possible not to display a post in the “post carrousel”, to exclude a post ?

    Thank you

    Crael

Viewing 1 replies (of 1 total)
  • Plugin Author livemesh

    (@livemesh)

    As is being discussed with you in our support desk, something like below in your child theme functions.php file to utilize the filter hooks provided would help –

    add_filter('lae_posts_carousel_2c2cee9_query_args', 'ocean_modify_posts_carousel_query', 10, 2);
    
    function ocean_modify_posts_carousel_query($query_args, $settings) {
    
    // exclude post 1234 - your post id is numeric see here - https://kinsta.com/knowledgebase/wordpress-get-post-id/
        $query_args['post__not_in'] => array('123');
    
        return $query_args;
    
    }

    Pls note the 2c2cee9 is the id for the elementor widget obtained by viewing the source of the page in the developer tools.

Viewing 1 replies (of 1 total)
  • The topic ‘Exclude a post in “post carousel”’ is closed to new replies.