Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Ga Satrya

    (@satrya)

    Not for now, but it would be a great new features in the future release ??

    For jamo_dagger, you can add author picture and author name using wordpress default function, here’s the step:

    1. Search for file widget-recent-posts-extended.php
    2. Search for line you want to place picture and name, in this example the image and name will display above the excerpt:

    <?php if( $excerpt == true ) {  ?>
    <div class="rpwe-summary"><?php echo rpwe_excerpt( $length ); ?></div><?php } ?>

    modify that line to:

    <?php if( $excerpt == true ) {  ?>
    <div class="author-section">
       <?php echo get_avatar( $id_or_email, 75, $default, $alt ); ?>
       <span class="author-name">Author: <?php the_author() ?></span>
    </div>
    <div class="rpwe-summary"><?php echo rpwe_excerpt( $length ); ?></div><?php } ?>

    note that you must fill and enabled Excerpt option.

    For the plugin author: plugin yang bagus ??

    Just re-check my code above, sorry for the mistake, the right one is below

    <?php if( $excerpt == true ) {  ?>
    <div class="author-section">
       <?php echo get_avatar( get_the_author_email(), '75' ); ?>
       <span class="author-name">Author: <?php the_author() ?></span>
    </div>
    <div class="rpwe-summary"><?php echo rpwe_excerpt( $length ); ?></div><?php } ?>
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Display Author’ is closed to new replies.