Probably need to change the date ‘format’ the plugin uses with the_time() (or the_date()).
If you can’t figure it out, leave a link to the plugin so I can tag this thread so the plugin author might be able to find it.
Thread Starter
hugobs
(@hugobs)
hi, thanks for the reply. i still cant make this work :(.
below is the .php of the plugin, which can be found here: http://wordpress.org/extend/plugins/nurelm-get-posts/
thanks a lot
[code moderated use a pastebin such as wordpress.pastebin.com in the future, please]
From the comments listed under that Plugin’s Homepage WuLongTi has a fix to format the date:
if you change this code:
$field = trim($field);
$content = $content . $post->$field;
to this code:
if (trim($fields_list[$i])==’post_date’){
$field = trim($field);
$dateFormat = ‘l F j, Y’;
$content .= mysql2date($dateFormat, $post->$field);
}else{
$field = trim($field);
$content = $content . $post->$field;
}
then you can reformat the date however you like.
Thread Starter
hugobs
(@hugobs)
it works! now, i just need to solve a small detail:
i would like to have a comma and a space between the title and the date, i.e.:
Release of EU report, May 19, 2010
instead of
Release of EU reportMay 19, 2010
any clue on how to do this?
many thanks!
You could probably do that in your date format
something like:
', l F j, Y'
note the beginning comma and space (work that into whatever format you used)
Thread Starter
hugobs
(@hugobs)
that worked, thanks a million.