Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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


  #1  
Old Dec 13, 2008, 02:23 PM
bseppa
 
55 posts · Dec 2008
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, 03:54 PM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
I am getting the same result, looking into it...
  #3  
Old Dec 13, 2008, 05:03 PM
Flynn's Avatar
Flynn
 
3,768 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, 06: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, 06:19 PM
RHCdG
 
170 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', 'Eén 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, 07:16 AM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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, 07:30 AM
RHCdG
 
170 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, 12:51 PM
juggledad's Avatar
juggledad
 
23,765 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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, 05: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



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 06: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 12:05 PM
Profile pic to bylines? designer666 Post-Kicker, -Byline & -Footer 2 May 12, 2009 09:56 AM
The %date-modified('F jS, Y')% in post footer not working Glottis Post-Kicker, -Byline & -Footer 11 Apr 11, 2009 05:52 AM
Welcome message as post without date or title? blueprairie Header configuration & styling 1 Apr 2, 2009 09:12 PM


All times are GMT -6. The time now is 05:55 PM.


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