Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Iulia Cazan

    (@iulia-cazan)

    Hi, this is a new feature that will be added in the next plugin version.

    Thread Starter ajeannot

    (@ajeannot)

    Thanks! Is it possible to do it manually by code styling a PHP file? I’ll make a donation if you help me! Thanks again!

    Thread Starter ajeannot

    (@ajeannot)

    Found the solution:

    I just added the following code to the latest-post-shortcode.php file:

    function exclude_category($query) {
    if ( $query->is_feed || $query->is_home ) {
    $query->set(‘cat’,’-xx,-xx’);
    }
    return $query;
    }
    add_filter(‘pre_get_posts’,’exclude_category’);

    Thanks!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Exclude categories’ is closed to new replies.