I am wanting to exclude one category of posts from the recent posts. I was hoping that a plugin would not be necessary and have searched as best I can to find unsatisfactory results:
I find the reply “use a custom query to filter out results. Check the codex” to be particularly irritating in this thread
It would have been much more useful if the person had pointed out WHERE in the codex to look. As it happens, I have looked in the codex as best I can. But I really don’t have that great a grasp on PHP so it is very time consuming for me to comprehend something enough to even be able to tell if it might work.
I hoped that I could somehow use
<?php get_recent_posts(); ?>
something along the lines of get_recent_posts(&exclude=4); ????
- The topic ‘how to exclude one category from recent posts?’ is closed to new replies.