95alexander95
Forum Replies Created
Viewing 6 replies - 1 through 6 (of 6 total)
-
Forum: Fixing WordPress
In reply to: Display text “Today” if posted today.Hey guys! I found the soloution. 🙂
I went inte the source code to a file called “WP-Settings.php” and changed -> date_default_timezone_set( ‘UTC’ ); <- to date_default_timezone_set( ‘Europe/Stockholm’ ); which is my local time.
Forum: Fixing WordPress
In reply to: Display text “Today” if posted today.does date(‘Yz’) have something to do with that?
Forum: Fixing WordPress
In reply to: Display text “Today” if posted today.Hmm, i live in sweden, and the time doesnt seem to be right. Its 21 minutes over 12 (in the middle of the night) and the “Today” hasnt changed. How can I fix this?
<?php if( date('Yz') == get_the_time('Yz') ) { echo 'today'; } else { the_time('F jS, Y'); }; ?>Forum: Fixing WordPress
In reply to: Display text “Today” if posted today.Thank you so much! 🙂
Forum: Fixing WordPress
In reply to: If the_date = today displays ‘Today’ else the_dateBump! I really need help. 🙂
Forum: Fixing WordPress
In reply to: If the_date = today displays ‘Today’ else the_dateMichaelH: This code work perfect, except that it displays “Today” for the posts that been posted in 24 hours. I dont want that, I want the text “Today” if it were posted the same day, not the same 24 hours. Please someone help 🙂
Viewing 6 replies - 1 through 6 (of 6 total)