Viewing 4 replies - 1 through 4 (of 4 total)
  • Can you post a link to your site and the name of your theme?

    First you should setup a child theme (http://codex.wordpress.org/Child_Themes) because you’ll be needing custom code and CSS.

    Inside your Child Theme folder (fluxipress-child) you’ll need to copy and paste the single.php file from the Parent Theme folder (fluxipress).

    Inside that file you’ll see this code:

    <div class="post-content clear">
       <h1><?php the_title(); ?></h1>
    <?php the_content(); ?>

    You’ll need to insert this code where you want the Date to show up, such as after the title or after the content:

    <p id="fluxipress-child-date">Posted: <?php the_time('l, F jS, Y'); ?></p>

    I gave the <p> a unique ID so you can style it – that can be whatever you want, as long as it’s not a class or ID that’s being used elsewhere.

    ALSO, if you want to format the date differently check out this: http://codex.wordpress.org/Formatting_Date_and_Time

    Finally, add any styling you want in the new Child Theme’s stylesheet- not the Parent stylesheet.

    Thread Starter narunael

    (@narunael)

    Hi Justin, thank you for your answer!
    Here is my site and like you guessed – I’m using Fluxipress as theme.
    I will try what you suggested!

    Thread Starter narunael

    (@narunael)

    It worked, thanks so much for your help!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Post date shown in the post’ is closed to new replies.