• Post dates are not displaying anywhere on the site (https://shuktara.org). I’m using a child theme of Workaholic. I can’t ask Graph Paper Press for support since they only give support for paid versions of their themes.

    I have tried this:

    • Activated another theme – dates don’t show on Twenty Fifteen or Twenty Twelve; not on the parent theme either
    • Disabled and enabled one by one the plugins
    • Changed date format; time format
    • Reinstalled WordPress 4.1.1 (from admin panel)
    • Added <?php the_time(get_option(‘date_format’)); ?> to my child theme functions.php
    • The dates still don’t show. Can someone please help? I have ten other WordPress sites that are working just fine but I cannot get the dates to display on this one.

      By the way the dates did show when I created the website and for at least a month after that. I’m not sure exactly when they stopped working because I don’t really look at the posts very carefully.

      Thanks,
      alison

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    Go to theme options and in the option “Blog Category”, choose the category where all your blog posts belong to. Save options and go back to your blog. You will see the date at the bottom of each blog post that belongs to the category you need.

    Alternately, if you your blog posts are in multiple categories, you will need to make the following changes in the child theme single.php file

    Find in_category( $blog_ID ) and comment as follows
    <?php //if( in_category( $blog_ID ) ) { ?>

    The corresponding end } should be commented as below

    </p>
    <hr class="dotted" />
    <?php //} This is the commented line. Above lines for reference?>

    Added <?php the_time(get_option(‘date_format’)); ?> to my child theme functions.php

    you would need to add this to the template files (in the child theme) which actually show your post(s), like (in the example of Twenty Fifteen) into content.php … (this might be a different template file in your theme).

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘None of the post dates are displaying’ is closed to new replies.