WordPress.org

Ready to get started?Download WordPress

Forums

Which hack to remove a category from the loop (4 posts)

  1. xzeed
    Member
    Posted 6 years ago #

    Hello wp fans,

    I would like to create a plugin where I have to remove a category from the normal loop. Maybe someone could give me an hint which hook I have to use and how.

    I tried the post_join and post_where hooks but always failed.

    Could someone write a very small example like removing category 1 from the loop?

  2. moshu
    Member
    Posted 6 years ago #

    There is already such a plugin: search for "category excluder" in the Extend > Plugins (above).

  3. xzeed
    Member
    Posted 6 years ago #

    I dont want to use this hook for a plugin I'm creating,
    so I doesnt makes sense to use two plugins.

  4. Kafkaesqui

    Posted 6 years ago #

    If you looked over the plugin's code, you could see what it's doing to accomplish this...

Topic Closed

This topic has been closed to new replies.

About this Topic