Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1025281

    Hi,
    On a single portfolio item I have a portfolio grid but I want to remove the current portfolio item from that grid.
    I searched the forum and already tried different suggestions, e.g.

    function ava_exclude_portfolio($query) {
         $query->set( 'offset', '1' );
    }
    
    add_action('pre_get_posts', 'ava_exclude_portfolio');

    But unfortunately it didn’t work.

    Also I want a pagination for the grid which paginates after every 4 items. How can that be done?

    #1025949

    Hey Autaak,

    Thank you for using Enfold.

    Try to use the “post__not_in” parameter as described here:

    // https://codex.wordpress.org/Class_Reference/WP_Query#Post_.26_Page_Parameters

    Best regards,
    Ismael

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.