• Resolved behedwin

    (@behedwin)


    The theme i am using does not show the timestamp.
    I want to add it.

    But i dont know where to look and what type of code to add.

    Anyone able to give me some general hint.
    I know it differ depending on theme, but if i just know how you think it is done in most themes… and what code to use… i should be able to figure it out.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Michael

    (@alchymyth)

    Thread Starter behedwin

    (@behedwin)

    but where to put this?
    in what php file?

    Michael

    (@alchymyth)

    normally into index.php and single.php (and archive.php, and category.php, and search.php, and …)

    some themes are using ‘get_template_part()’ for the output of the posts’ content, so you might also follow those leads, and some theme might be using functions to putput the post meta data…

    to find out which template gets used when, review http://codex.wordpress.org/Template_Hierarchy

    uless you post the name and download link of your theme, this is all anybody could suggest.

    Thread Starter behedwin

    (@behedwin)

    http://www.fabthemes.com/womack/

    this is the theme i use
    i always get turned away on this forum when i post my theme since it is not supposed to be posted here :p

    Michael

    (@alchymyth)

    you are right – this forum only provides theme specific support for themes from http://wordpress.org/extend/themes/

    however, you should still get general support with the more general questions.

    but, to point out in detail where to add the time stamp, is theme specific.

    the exact location in the code also depends on your layout ideas, i.e. where exactly you want to put the time stamp.

    your first step should be to locate the template which you need to edit;
    then try to locate ‘the loop’ within the template;
    then try and locate the post title <?php the_title(); ?> and/or the post content <?php the_content(); ?> and possibly any existing code for the output of the author, or categories or…

    looking at the theme’s demo, there is a date stamp just below the post title. try to locate the code for that, and integrate the time stamp there.

    Thread Starter behedwin

    (@behedwin)

    got it to work

    i downloaded a software called fileSeek
    allowed me to search all files in a directory and find what files contained specific code.

    that helped me to locate what file to use
    and where in it to add the time string.

    thanks

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘add timestamp on post’ is closed to new replies.