WordPress.org

Ready to get started?Download WordPress

Forums

get categories and tags by author (4 posts)

  1. slivehappy
    Member
    Posted 4 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 ); ?>
    http://codex.wordpress.org/Function_Reference/get_categories

  2. MichaelH
    Member
    Posted 4 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
    Member
    Posted 4 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
    Member
    Posted 4 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

    http://wordpress.org/support/topic/327333?replies=11

Topic Closed

This topic has been closed to new replies.

About this Topic