WordPress.org

Ready to get started?Download WordPress

Forums

Yet Another Related Posts Plugin (YARPP)
[Plugin: Yet Another Related Posts Plugin] Adding a date published below related_posts (3 posts)

  1. CreativeWP
    Member
    Posted 2 years ago #

    Hello every one, great pluggin, I want to add the date that was publish the article. Non-clickable, but never the less showing.

    This is the code I am using,

    <div class="relatedp">
    <?php if (related_posts_exist()): ?>
    <ol>
    <?php related_posts(); ?>
    
    </ol>
    <?php else: ?>
    <p>No related posts.</p>
    <?php endif; ?>
    </div>

    Any ideas how? So basically, the title will show up, and the date published will show under the posting.

    Thanks,

    http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/

  2. CreativeWP
    Member
    Posted 2 years ago #

    Basically, I want to add this to the loop:

    <?php the_time('F, d, Y'); ?>

    Is there a way to do it?

  3. mitcho (Michael Yoshitaka Erlewine)
    Member
    Plugin Author

    Posted 2 years ago #

    You'll need to use a YARPP custom template for this:

    http://mitcho.com/blog/projects/yarpp-3-templates/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic