• shirinoff

    (@shirinoff)


    Hi, that is amazing plugin and thanks for it. is it possible to shop author img and name ot top of each recent post ?

Viewing 1 replies (of 1 total)
  • Plugin Author Amit Sonkhiya

    (@amitaits)

    Hi,

    There is no built in functionality for that but can make small modification in the plugin file itself.

    You can insert author image URL in foreach loop. A raw sample code is as below:

    <?php
    //Ensure that these line are called before foreach loop
    $author = get_the_author_meta( 'display_name', $authordata->ID );
    $author_img_url = 'YOUR_IMAGE_URL'; //<img src="..." />
    ?>
    
    // Search for this line
    <?php foreach ( $authors_posts as $authors_post ) { ?>
    			<li> 
    
    <?php
    // Add your code
    // Don't forget to apply your formatting
    echo $author.' '.$author_img_url;
    ?>
    
    ...
Viewing 1 replies (of 1 total)
  • The topic ‘is it possible ?’ is closed to new replies.