• Resolved c0y0te

    (@c0y0te)


    The method of showing the most recent x posts on my theme is to use the wp_get_archives function. I’ve checked the codex (http://codex.wordpress.org/Template_Tags/wp_get_archives#Last_Twenty_Posts) for info on this but I don’t see an answer so I’m asking the question here.

    Is it possible to exclude certain categories when using this function. In other words, can I retrieve all of my most recent X posts, excluding any from category Y. If so – can someone please post an example in code?

    All help greatly appreciated.

    c0y0te

Viewing 11 replies - 1 through 11 (of 11 total)
Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘wp_get_archives function… can I exclude a category?’ is closed to new replies.