Wordpress Themes - WP Forum at BFA
Click Here To DONATE! Support the theme development, get more attention and additional benefits based on your donation level. Your forum name will be highlighted.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Center area post/pages » Post-Kicker, -Byline & -Footer »

Date Formats in Post Bylines


Build custom WP THEMES, without
coding.
Click here for THEMEFRAME

From the author of Atahualpa, the #1 most
downloaded (700,000+) theme @ wordpress.org
  #1  
Old Dec 13, 2008, 01:23 PM
bseppa
 
55 posts · Dec 2008
Bug Date Formats in Post Bylines

String: <strong>%author-linked%</strong> posted on <strong>%date('F jS, Y')%</strong>
Renders: Jeffrey Schwab posted on May 26th, 2008

String: <strong>%author-linked%</strong> posted on <strong>%date('j F Y')%</strong>
Renders: 26 May 2008

All I changed was the date format to that which I use all over the site.
  #2  
Old Dec 13, 2008, 02:54 PM
Flynn's Avatar
Flynn
 
3,765 posts · Oct 2008
Munich, Germany
I am getting the same result, looking into it...
  #3  
Old Dec 13, 2008, 04:03 PM
Flynn's Avatar
Flynn
 
3,765 posts · Oct 2008
Munich, Germany
Dates starting with a number don't work, others work. The regular expression gets thrown off

If you want to fix it yourself for now, in functions/bfa_postinfo.php line 160

change

PHP Code:
$postinfo preg_replace("/(.*)%date\((.*?)\)%(.*)/i""\\1" .$date"\\3"$postinfo); 
to

PHP Code:
$postinfo preg_replace("/(.*)%date\((.*?)\)%(.*)/i""\${1}" .$date"\${3}"$postinfo); 
Do you have a non-english blog? Can you check if month and day names are being translated (they should)?
  #4  
Old Dec 13, 2008, 05:06 PM
bseppa
 
55 posts · Dec 2008
That fixed the problem. Thanks!

No, I do not have a non-English blog. Sorry.
  #5  
Old Mar 21, 2010, 05:19 PM
RHCdG
 
142 posts · Nov 2009
Netherlands
Hi Flynn and others,

I am having the footer set as follows:

%date('j F Y')% | %tags-linked('Tags: ', ', ', ' | ')% Categorie: %categories-linked(', ')% | %comments('Reageren', 'En reactie', '% reacties', 'Reacties op dit bericht zijn afgesloten')% %edit(' | ', 'Deze post bewerken', '')%

This renders:
maart 21st, 2010 at 23:58

I would like to have it render:

21 maart 2010 om 23:58

(i.e., no "st" after the date, no comma before the year, and the word "at" replaced by "om")

My site is in Dutch; the month of March is correctly translated into "maart".

Thanks for your help!

Rutger
  #6  
Old Mar 22, 2010, 06:16 AM
juggledad's Avatar
juggledad
 
22,269 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
I just tried exactly what you ahve coded and I get the correct format, this must have something to do with the language translation, try using %date('F j Y')% and see what happens
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #7  
Old Mar 22, 2010, 06:30 AM
RHCdG
 
142 posts · Nov 2009
Netherlands
Hi Juggledad,

Replacing %date('j F Y')% by %date('F j Y')% does not seem to make any difference. It still renders maart 21st, 2010 at 23:58, including the translated month name. Thanks for any additional suggestions!
  #8  
Old Mar 22, 2010, 11:51 AM
juggledad's Avatar
juggledad
 
22,269 posts · Mar 2009
OSX 10.8.5 WP 3.8.x Atahualpa 3.7.x Safari 6.x Firefox 25 XP
Hmmm, I just tried the two and %date('j F Y')% gives me '18 February 2010' - this must have something to do with the language translation since it works fine in english on 3.4.6 - however, I have never tried to look at how the translating works.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #9  
Old Mar 26, 2010, 04:13 PM
Robsi60
 
4 posts · Mar 2010
As I posted in another post. Same problem. German setup 2.9.2 and 3.4.6. I think its the translation, but I'm not fit in php

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can you suppress date on sticky post? Andante Atahualpa 3 Wordpress theme 6 Mar 21, 2010 05:39 AM
How to modify the links below each post on the homepage ? ( Date, tags , Leave a com. 3ukman Header configuration & styling 5 Jul 10, 2009 11:05 AM
Profile pic to bylines? designer666 Post-Kicker, -Byline & -Footer 2 May 12, 2009 08:56 AM
The %date-modified('F jS, Y')% in post footer not working Glottis Post-Kicker, -Byline & -Footer 11 Apr 11, 2009 04:52 AM
Welcome message as post without date or title? blueprairie Header configuration & styling 1 Apr 2, 2009 08:12 PM


All times are GMT -6. The time now is 10:50 PM.


Powered by vBulletin® Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.