WordPress.org

Ready to get started?Download WordPress

Forums

Ultimate Category Excluder
Multiple category posts and cat exclusion (4 posts)

  1. Pereira
    Member
    Posted 2 years ago #

    I really like your Ultimate Category Exclusion plugin. It does what i've tried to do manually editing functions.php and index.php files and such, but its clean and effective.

    However, i ran into a problem that is described here in this forum post http://wordpress.org/support/topic/exclude-category-from-the-loop by this guy Austin. Actually its just something he mentions:

    "Okay, I see what you're saying. The problem is that something like query_posts("cat=-3"); excludes a post of category 3 only if that post is under just category 3. If you've assigned it other categories, then it's not excluded."

    Exactly what he doesn't want is what i want. That means: I dont want posts that are exclusively in category 1 to show in the index loop, however, if this post is in categories 1 and 2, i do want it to show.

    Do you have any way to implement that on your plugin, or do you have a suggestion of how I could fix my problem?

    Thanks a lot.

    http://wordpress.org/extend/plugins/ultimate-category-excluder/

  2. hakonorri
    Member
    Posted 1 year ago #

    I would like to see the same feature as #macrosmyara. Any suggestions?

    Macrosmyara have you found anything?

  3. Pereira
    Member
    Posted 1 year ago #

    hakonorri, that was a long time ago. From what i remember, i just did'nt use the plugin anymore, and I made the exclusion manually using:

    <?php $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
         query_posts("cat=1,4,5&paged=$paged"); ?>
  4. hakonorri
    Member
    Posted 1 year ago #

    looks promising but my php skills are not that good. where do you put the code? in index.php?

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic