• Is it possible to split and display post categories by author?

    I am building a personal blog site for my wife and I and we would like to display our own post categories in the sidebar. One list for my posts & categories and another for hers.

    I realize it’s probably possible to use exclude tags to create two separate lists, but then the php would have to be manually updated whenever a new category is created, right?

    Any suggestions would be greatly appreciated!

    Thanks,

    Thayer

Viewing 2 replies - 1 through 2 (of 2 total)
  • One possible way: create 2 big parent categories – one for yourself and one for the other author, and any categories you have for your posts… should be a child category of one of the two main cats.

    I have more than a dozen authors, each with up to 5 categories, that eventually change throughout time. Is there no other way to link the wp_list_categories to each individual author Id to be displayed?
    I somehow managed it with ‘including’ some kind of a workaround script:

    <?php if (is_author(‘2’) ) { ?>
    <h2><?php wp_list_cats(‘include=53, 52, 21, 54’); ?></h2>
    <?php } elseif (is_author(’11’) ) { ?>
    <h2><?php wp_list_cats(‘include=12, 14’); ?></h2>

    but it seems messy to me and doesn’t work within the categorys itself.

    Thank You for help.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sort and list post categories by author?’ is closed to new replies.