• Resolved theJuls

    (@thejuls)


    I would like to include the date (and possibly time) of the post on my blog, but unfortunately clearly the theme that I am using does, which is Tesseract, not support it or maybe I’m missing something…

    From the research that I have done, I would need to include some code on my posts so that it displays the date, as said here: http://codex.wordpress.org/Function_Reference/the_date

    However, this is not working, either it displays nothing, or it shows some random parts of the code.

    Am I doing something wrong? What can I do to put the date next to the titles of my post? Is there a way to change the theme’s code so that it always automatically inserts the date for very blog post?

    Thanks for your help!

Viewing 2 replies - 1 through 2 (of 2 total)
  • the theme uses a function tesseract_posted_on() to show the post date which is defined in /inc/template-tags.php of the theme.

    it could be a CSS issue that the output does not show in your site.

    please post a live link to illustrate what you see right now.

    PS:
    I just installed the theme, and it seems that the output of the entry meta is indeed suppressed via a display: none; in the CSS;

    in style.css:

    .entry-meta,
    .entry-footer,
    .logged-in-as {
        font-size: 13px;
        display: none;
    }

    overwrite that with some custom CSS like:

    .entry-meta { display: block; }

    alternatively, you could try to add the code for the date and time somewhere outside of this section:

    <div class="entry-meta">
    			<?php tesseract_posted_on(); ?>
    		</div><!-- .entry-meta -->

    into content.php and content-single.php of your theme.

    Thread Starter theJuls

    (@thejuls)

    Worked perfectly with much less of a fight than I thought it would need.

    Thank you very much!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to display date on blog post?’ is closed to new replies.