Forums

Tags for site roles and post counts... (2 posts)

  1. Dydeyo
    Member
    Posted 1 year ago #

    I've been trying to customize the way my blog formats information on it's posts. Below the avatar, I'd also like it to show the role of the person that posted and the amount of posts that user has. What I want is the PHP tags I would need to use in order to make them appear, if that's even a possibility.

    For instance it would potentially look something like this

    USER ROLE (POST COUNT)

    Incase your confused what I mean by the user role is like Admin, Editor, Contributor, ect. I want to know what PHP tags I could use to call this information.
    Thank you! I hope someone can help!

  2. Dydeyo
    Member
    Posted 1 year ago #

    EDIT: i have figured out the tag for posts counts and it works just find...

    SOURCE:
    http://codex.wordpress.org/Function_Reference/count_user_posts

    <?php echo 'Posts made: ' . count_user_posts(1); ?>

    so half my question is answered...but i still cant seem to find the other one i need :/

Topic Closed

This topic has been closed to new replies.

About this Topic