Forums

[Plugin: Yet Another Related Posts Plugin] Display date and category together with post title (5 posts)

  1. niska
    Member
    Posted 2 years ago #

    I would like to display the date and category, in addition to the title of every related post. Howevery, even though this should be an easy task - it is not for me.

    I would like to request a "default template" that I can modify to my likings. The default template should only have a list of post titles, and every optional stuff that could be displayed should be commented. That way we PHP/WP newbies only needs to copy and paste the stuff we need.

    What do you think?

  2. Daiv Mowbray
    Member
    Posted 2 years ago #

    Hello niska,
    in your yarpp template file just add this where you want the date:
    <?php the_time('F jS, Y') ?>
    for the category, add the WordPress category template tag.
    HTH

  3. niska
    Member
    Posted 2 years ago #

    Thanks Daiv. Which template file should I use? I want the default look.

  4. achildgrows
    Member
    Posted 1 year ago #

    I too would like to display the date of each post. Did the above solution work and did you find out what template file should be used?

  5. Daiv is exactly right. Some more info on using YARPP templates:

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

Topic Closed

This topic has been closed to new replies.

About this Topic