get categories and tags by author (4 posts)

  1. slivehappy
    Posted 6 years ago #

    I am creating a blog with many authors and I would only like to display their categories and tags .. on author.php

    is there a something similar to this functions that allows you to get only the categories by a specific author?

    <?php $categories = get_categories( $args ); ?>

  2. MichaelH
    Posted 6 years ago #

    One possibility would be to use the template tag, get_posts(), to retrieve all posts for an author, then rifle through those posts to collect the list of categories and tags used.

  3. slivehappy
    Posted 6 years ago #

    great thanks .. can you please explain a little further? I looked at both .. but I am not sure how to do what you suggest .. thanks a million

  4. Kevin Kwok
    Posted 6 years ago #

    hey slivehappy im trying to do the exact same thing as you, have you found a solution yet?

    michael explained a way that i can display the categories, but i want to explode categories the author has not written in. right now it just displays every category that exists


Topic Closed

This topic has been closed to new replies.

About this Topic