Support » Plugins » Which hack to remove a category from the loop

  • 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?

Viewing 3 replies - 1 through 3 (of 3 total)
  • There is already such a plugin: search for “category excluder” in the Extend > Plugins (above).

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

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Which hack to remove a category from the loop’ is closed to new replies.