WordPress.org

Ready to get started?Download WordPress

Forums

remove a category from the post count (7 posts)

  1. task
    Member
    Posted 8 years ago #

    hello, i would like to remove a category from the post count

    so by example, posts under the asides category are not counted, but they are still being showned

    i have fount this code on zeo

    function myFilter($query) {
    	if ($query->is_feed) {
    		$query->set('cat','-5');
    	}
    
    return $query;
    }
    
    add_filter('pre_get_posts','myFilter');

    but i want them to still be printed... thanks

    using 2.1.2 without any php skillz :(

  2. task
    Member
    Posted 8 years ago #

    no one?! :(

  3. task
    Member
    Posted 8 years ago #

    nothing?

  4. task
    Member
    Posted 7 years ago #

    it's been a while...

    no solution for this?!!!

  5. task
    Member
    Posted 7 years ago #

    ohhh, please c'mon someone!!!

  6. task
    Member
    Posted 7 years ago #

    mmmmm i can't think that this is such an impossible request!

  7. Samuel B
    moderator
    Posted 7 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags