Streamline, how to ?

Community Forums Forums Design Tips and Tricks Streamline, how to ?

This topic is: not resolved

This topic contains 6 replies, has 2 voices, and was last updated by  imaginarts 1 year, 6 months ago.

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #24506

    imaginarts
    Participant
    Post count: 3

    Hello,

    I am looking for removing 2 categories from the home page feed. Is anyone have an idea ?

    Thanks a lot

    Lionel

    http://www.imagnarts.tv/enterremartiale

    #25276

    braddalton
    Participant
    Post count: 9735

    Add this to your child themes functions.php file. Make sure you edit the category i.d
    [php]
    function wpsites_exclude_category_feed($query) {
    if ($query->is_feed) {
    $query->set(‘cat’,’-007′);
    }
    return $query;
    }
    add_filter(‘pre_get_posts’,’wpsites_exclude_category_feed’);
    [/php]


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #25433

    imaginarts
    Participant
    Post count: 3

    Hello Braddalton

    Thanks a lot. Will try this.
    Should I keep “-” “minus sign to remove the desire category?

    #25434

    braddalton
    Participant
    Post count: 9735

    Yes and you can add more cats seperated with comma’s.


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #25439

    imaginarts
    Participant
    Post count: 3

    Great it works on my RSS feed. Thanks.

    And is this possible also to remove this same categories from my home page ? Streamline display all articles on the homepage. I would like to remove these category from that page. Thanks.

    Lionel

    #25557

    braddalton
    Participant
    Post count: 9735

    Install this plugin http://wordpress.org/extend/plugins/simply-exclude/screenshots/


    Specializing In StudioPress Child Theme Customization.
    500+ StudioPress Tutorials

    #25621

    imaginarts
    Participant
    Post count: 3

    Thanks a lot. It’s working perfectly.

    Cheers

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.