Support » Plugin: Byline » How to format byline

  • Great plugin. Question that I can’t figure out: How do I format the tag to include something as simple as “by” in front of the name? And how to place the person’s role as either a “guest author” or “staff” as described in the description. I am a beginner and trying to learn child themes.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author mattdu


    It depends on the theme. One place to look is single.php and look for wherever the_author appears. You should see a place where you can insert “by” in front of this code (before the PHP). If you post the chunk of code from single.php where the author appears, I might be able to show you where.

    Thank you for the fast reply. I looked in the single.php page and there is no the_author that I could find. Here is the code for what looks like would be the post content.

    <div class=”entry-content”>
    <?php if( has_post_format( ‘audio’ ) ) : ?>
    <p><?php pinboard_post_audio(); ?></p>
    <?php elseif( has_post_format( ‘video’ ) ) : ?>
    <p><?php pinboard_post_video(); ?></p>
    <?php endif; ?>
    <?php the_content(); ?>
    <div class=”clear”></div>
    </div><!– .entry-content –>
    <footer class=”entry-utility”>
    <?php wp_link_pages( array( ‘before’ => ‘<p class=”post-pagination”>’ . __( ‘Pages:’, ‘pinboard’ ), ‘after’ => ‘</p>’ ) ); ?>
    <?php the_tags( ‘<div class=”entry-tags”>’, ‘ ‘, ‘</div>’ ); ?>
    <?php pinboard_social_bookmarks(); ?>
    <?php pinboard_post_author(); ?>
    </footer><!– .entry-utility –>
    </div><!– .entry –>

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to format byline’ is closed to new replies.