• I’m using K2 (version 0.9). In the sidebar there is a module that pulls the latest posts (up to 10) using wp_get_archives. Is it possible to exclude posts from a particular category?

    If so, how would I accomplish this?

    Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Check The_Loop page for some example on how to exclude categories.

    Thread Starter wbhamilton

    (@wbhamilton)

    Thanks. In reading through The Loop info I understand that something like: <?php if (in_category('3')) continue; ?>
    will exclude category 3 but I don’t understand how to get this to work with wp_get_archives.

    Sorry, maybe I’m a little slow on the uptake.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘wp_get_archives customization’ is closed to new replies.