That is not the full printf so i assume it’s using get_the_date() and get_the_time();
Formatting date and time: http://codex.wordpress.org/Formatting_Date_and_Time
We have to see the full printf() to know what %1$s will be printing.
Thread Starter
razaj
(@razaj)
Thank you for your time.
Here’s the full printf
<?php printf(__(' was posted %1$s on %2$s at %3$s.<br><br>This entry is filed under: <br>%4$s.<br><br>', 'r755_light'), $time_since, get_the_time(__('d/m/Y (l)', 'r755_light')), get_the_time(), get_the_category_list(', ')); ?>
What does it tell you?
The first variable is $time_since and I don’t know what it holds. Maybe something like (3 days ago). Try looking in the template file to see what it can hold.
Formatting the date same as in Settings > General try this:
<?php printf(__(' was posted %1$s on %2$s at %3$s.<br><br>This entry is filed under: <br>%4$s.<br><br>', 'r755_light'), $time_since, get_the_date(__('F j, Y', 'r755_light')), get_the_time(), get_the_category_list(', ')); ?>
Thread Starter
razaj
(@razaj)
Thank you keesiemeijer.
You are a lifesaver!
On a related note, where should I look for more info on $time_since ? Its not there in single.php.
I think it should be in the loop. If it’s not you can leave it out:
<?php printf(__(' was posted on %1$s at %2$s.<br><br>This entry is filed under: <br>%3$s.<br><br>', 'r755_light'), get_the_date(__('F j, Y', 'r755_light')), get_the_time(), get_the_category_list(', ')); ?>
Try looking in other template files but I think the setting of the variable should be set inside the loop.
Thread Starter
razaj
(@razaj)
Right.
Aha. So its all sequential.
Thanks