Go Back   WarriorForum - Internet Marketing Forums > The Warrior Forum > Main Internet Marketing Discussion Forum
Register Blogs FAQ Social Groups CalendarHelp Desk

Reply
 
LinkBack Thread Tools
Old 02-23-2009, 02:50 PM   #1
Warrior Member
 
Join Date: Jan 2009
Posts: 20
Thanks: 2
Thanked 0 Times in 0 Posts
Default Need a little bit help with wordpress script

I didnīt know any other forum that so many smart people are viewing so
I need a little bit help with changing this script so i want it to display the day today, but it is displaying the day when the page was made.

the code looks like this

<div class="post">

<div class="posttop">
<div class="dateicon">
<div class="day"><?php the_time('d') ?></div>
<div class="month"><?php the_time('M') ?></div>
</div>

i dont want to send the link to the site because i dont know if i will get banned or not.. so if you want to see how this is on the site i will send you pm or post it on the forum if i am allowed to.

thx people on warrior forum
falkinn is offline   Reply With Quote
Old 02-23-2009, 03:10 PM   #2
HyperActive Warrior
War Room Member
 
TrafficGuy Claude's Avatar
 
Join Date: Feb 2009
Posts: 441
Blog Entries: 2
Thanks: 61
Thanked 274 Times in 47 Posts
Contact Info
Send a message via MSN to TrafficGuy Claude Send a message via Skype™ to TrafficGuy Claude
Default Re: Need a little bit help with wordpress script

You need to format your php the_time function. You can use the following characters:

  • l = Full name for day of the week (lower-case L).
  • F = Full name for the month.
  • j = The day of the month.
  • S = The English suffix for the day of the month (e.g st, nd or th in the 1st, 2nd or 15th.)
  • Y = The year in 4 digits. (lower-case y gives the year's last 2 digits)
So

Code:
<?php the_time('l, F jS, Y') ?>
Would give you the following output:

Code:
Monday, February 23rd, 2009
TrafficGuy Claude is offline   Reply With Quote
Reply

  WarriorForum - Internet Marketing Forums > The Warrior Forum > Main Internet Marketing Discussion Forum

Tags
bit, script, wordpress

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



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