how to exclude one category from recent posts?
-
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:
https://www.ads-software.com/support/topic/72095
https://codex.www.ads-software.com/Advanced_Topics
https://codex.www.ads-software.com/Displaying_Posts_Using_a_Custom_Select_Query
https://codex.www.ads-software.com/Template_Tags/wp_list_cats
I find the reply “use a custom query to filter out results. Check the codex” to be particularly irritating in this thread
https://www.ads-software.com/support/topic/46422
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
wp_list_cats('&exclude=4')
in<?php get_recent_posts(); ?>
something along the lines of get_recent_posts(&exclude=4); ????
Any ideas?
- The topic ‘how to exclude one category from recent posts?’ is closed to new replies.