• Resolved Teschandorff

    (@teschandorff)


    I am using the picture perfect theme and when I post a new blog post there is no information about who posted it or when it was posted. When I click on the title and it gives me the archived page of that post it does contain that information but not on the homepage. Does anyone know how might fix this? is it a wordpress settings issue or a theme issue?
    thanks for the help.
    Tim

Viewing 8 replies - 1 through 8 (of 8 total)
  • Thread Starter Teschandorff

    (@teschandorff)

    can anyone help me with this issue? thanks.
    Tim

    shawnyuan

    (@shawnyuan)

    You’ll probably need to add the author and date yourself, to the index.php page.

    To add the author, use this: https://codex.www.ads-software.com/Function_Reference/the_author

    To add the date, use this: https://codex.www.ads-software.com/Function_Reference/the_date

    Paste the contents of your index.php file if you need to know where to place the code.

    Thread Starter Teschandorff

    (@teschandorff)

    [Code moderated as per the Forum Rules. Please use the pastebin]

    This is my page.php file.
    thanks for the help.
    Tim

    shawnyuan

    (@shawnyuan)

    Insert this code:

    <div class="date">Date posted:<?php the_date(); ?></div>
    <div class="author">Post written by:<?php the_author(); ?></div>

    in between the following 2 lines in your page.php file.

    <h2><?php the_title(); ?></h2>
    <?php the_content(); ?>

    Thread Starter Teschandorff

    (@teschandorff)

    I’m afraid that didn’t do it. I copied the code you gave me and it didn’t seem to have any affect. my page code now looks like this:

    [Code moderated as per the Forum Rules. Please use the pastebin]

    thanks again for the help.
    Tim
    the site address is https://www.schandorfffamily.com

    shawnyuan

    (@shawnyuan)

    It actually worked. Go to any of the sub pages – Photo Gallery, Contact Us, MAF TImeline.

    If you only want it on the home page, take out the code you added to page.php and add it to the same position in index.php.

    Thread Starter Teschandorff

    (@teschandorff)

    That’s great. thanks man. I actually ended up finding some code from the singlepage.php file that did the same thing in a way that was a little more consistent with the theme. But I wouldn’t have known where to put it without your help so thanks.
    Tim

    shawnyuan

    (@shawnyuan)

    Good job.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[picture perfect theme] no "posted on" date for most recent post’ is closed to new replies.