WordPress.org

Ready to get started?Download WordPress

Forums

Posts in Page
[resolved] Exclude categories? (7 posts)

  1. merryj
    Member
    Posted 1 year ago #

    I would like to be able to show all posts except those in my past_events category, including those from categories that don't exist yet. Is/will this be possible to add?

    http://wordpress.org/extend/plugins/posts-in-page/

  2. merryj
    Member
    Posted 1 year ago #

    Actually, it gets better. With my initial question, I was trying to build a tag that would continue to work for me without needing periodic tweaking, but I was under the impression that the category filter actually worked. It doesn't.

    [ic_add_posts orderby='date' order='DSC' category='volunteering" template="posts_loop_template_entire.php"]

    This tag shows all active posts, whether they are in the volunteering category or not. We have a lot of event postings. I'm using the post expirator plugin to change the category of time-sensitive posts to "past-events" after their date has passed, but that doesn't work very well if they're still getting displayed on the home page, regardless of the category they are in. The only way I can seem to hide posts that have passed is to put them into draft status, which means that I can't have a past-events category where people can browse past events.

  3. Jordan Beaver (gehidore)
    Member
    Plugin Contributor

    Posted 1 year ago #

    Looking into the stated issue and implementing the feature request.

  4. merryj
    Member
    Posted 1 year ago #

    Fantastic! Thanks for the response :)

  5. Jordan Beaver (gehidore)
    Member
    Plugin Contributor

    Posted 1 year ago #

    merryj can you confirm for me that your code does in fact look like you posted it?

    [ic_add_posts orderby='date' order='DSC' category='volunteering" template="posts_loop_template_entire.php"]

    Please take note of the single quote ended with a double quote in your category=.

    The quotes need to be of the same species.

  6. merryj
    Member
    Posted 1 year ago #

    Jeez, I feel like an idiot. But, that's why copy-paste is a good thing :)

    Thanks!

    Any thoughts on when an exclude-category option might be on its' way? At least I can manage it manually for now, though!

  7. Jordan Beaver (gehidore)
    Member
    Plugin Contributor

    Posted 1 year ago #

    No worries, I typo every day.

    I'm actually working on integrating your feature request as we speak, so any day.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic