td_module_11.php

Posted in: Newsmag
Post count: 35

I want to add (post creation) date and time of the post at block11.

How is this possible ?

Post count: 7909

Hi,

Please make sure that you have the date enabled from Theme Panel: http://screencast.com/t/E9wymLi6

Thanks!

Post count: 35

Yeah – i have the date enabled that i wanna do is to display not only the date of the post but also the time that the post posted !

Post count: 35

Any ideas ?

Post count: 9544

I think you can edit the module to add the additional WordPress time settings like hour / minute / second 00:00:00 — somebody else asked about this I recall, so might be findable in the forum while waiting for more specific reply.

not sure though, might be another place that is done.

We actually need to do that for the post pages, too.

in loop-single-1 for instance I see
<?php echo $td_mod_single->get_date(false);?>

so, ref:
http://codex.wordpress.org/Function_Reference/get_the_date

normal usage
<span class="entry-date"><?php echo get_the_date(); ?></span>

with time format
http://codex.wordpress.org/Formatting_Date_and_Time

<span class="entry-date"><?php the_time('l, F jS, Y') ?></span>

or

<?php the_time(get_option('date_format')); ?> – <?php the_time(); ?>

Something like that. If you get working solution, please post an example of when/where, and I will try to do the same 🙂

  • This reply was modified 11 years by simchris.
Post count: 9544

oh….
stupid me….

go to your wp settings > general

and in the time/date settings be sure to put in the time/date stamps you want in the format you want;

eg. for custom date format
M j, Y H:i:s O T

http://screencast.com/t/wgFVrkihMo

result:
http://ga-ga.com/2549/book-review-tons-of-corruption-in-america-venality-has-been-in-bloodstream-of-politicians-since-founding/

Jan 16, 2015 20:15:35 -0500 EST

ref:
https://forum.tagdiv.com/topic/time-stamp/

  • This reply was modified 11 years by simchris.
  • This reply was modified 11 years by simchris.
Post count: 35

Awesome! Solved!

Viewing 7 posts - 1 through 7 (of 7 total)
You must be logged in to reply to this topic.