I want to put publish time on single post [Version 6.2]

Posted in: Newspaper
Post count: 199

Tagdiv Team hi. Can you tell me how to put publish time on each post near on the date of the article under the title?

Post count: 199

i make it with this code <?php echo $td_mod_single->get_date(false);?> <?php echo get_the_time(); ?> on loop-single.php but i have css issue. the time text, doesn’t same with date text. http://grab.by/IzvE

any help?

Post count: 9544

Try a non-breaking space or two between the echo elements.

Post count: 199

thank you chris. i make it, but doesn’t fix http://grab.by/IzPG

Post count: 9544

Hmn. Weird — I’m doing this on Newsmag and assumed would work identically for newspaper 6 — I think you might need to look at the page source and see what is actually being “printed” on the page in that spot to see if a style is being applied to the element aside from the div wrapper. If so, you’d need to apply the same CSS to your code (e.g., there may be a “margin-top:4px” or “padding-top:4px” or similar.

The quick fix is wrap your code in a span like

<span class="mypadder">[code here for time]</span>

then add custom css to the panel

.mypadder{padding-top:3px}

or margin-top, etc.

or wait until Monday for tagdiv official support 🙂

Post count: 199

thank you chris. i fix it with this code

<?php echo $td_mod_single->get_date(false);?> , <span class="td-post-date"><?php the_time('H:i'); ?></span>

actually i put “td-post-date” class on span and the results is the same as date. 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
The forum ‘Newspaper’ is closed to new topics and replies.