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

    I use this in function.php but not work

    //portfolio query
    add_filter( ‘avia_post_grid_query’, ‘custom_post_grid_query’, 10, 2);
    function custom_post_grid_query( $query, $params ) {
    $id = avia_get_the_ID();
    $query[‘post__not_in’] = array($id);
    return $query;
    }

    #889576

    Hey unicaweb,

    Which id are you getting? what do you want to exclude? Can you explain a bit more?

    Best regards,
    Victoria

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