WordPress.org

Ready to get started?Download WordPress

Forums

User Submitted Posts
[resolved] Author name also posted in regular posts by admin (2 posts)

  1. pallisvans
    Member
    Posted 1 year ago #

    Hi, when using the display tag for author name it also shows the author name on the regular posts in the blog. I'm using as instructed:

    <?php if (function_exists('usp_author_link')) usp_author_link(); ?>

    I'm using a specific category for user submitted posts - is it possible to show the author name only in that category as a workaround?

    http://wordpress.org/extend/plugins/user-submitted-posts/

  2. Jeff Starr
    Member
    Plugin Author

    Posted 1 year ago #

    Sure, use some conditional code, like so:

    <?php if (is_category('category')) { ?>
    <?php if (function_exists('usp_author_link')) usp_author_link(); ?>
    <?php } ?>

    More infos:

    http://codex.wordpress.org/Function_Reference/is_category

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.