Different date format for posts than modules (blocks)

Posted in: Newsmag
Post count: 66

Please, on version 1.5 I was able to show posts’ date on different format than modules or blocks, modifying single_template_2.php but that doesn’t works now on version 1.6.

Fz

Post count: 7909

Hi,

You have to edit again single_template_2.php and replace date with: http://screencast.com/t/bW4CUrEski

<?php echo get_the_time('l, j \d\e F \d\e Y'); ?>

Thanks!

Post count: 66

Hi Alin,

For some reason now on version 1.6 it is not working. I’m using child-theme, and loop-single-7.php (to change date format on post template 7) is working perfectly but single_template_2.php is not. I think it is because the relocation of more and more files to wp_booster directory (override the original file when using Speed Booster, my case), which I have to say is not child-theme friendly.

I searched on wp_booster to find the file I should edit to get the date format for post template 2, without success. Or should I try to edit the file (single_template_2.php) on the father-theme to see if it works?

Fz

  • This reply was modified 11 years by felizubi.
  • This reply was modified 11 years by felizubi.
Post count: 66

Alin, it works!

So, single_template_2.php is not working on child-theme but it is if I edit the one located on father-theme.

Regards,
Fz

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