Jump to content
Lizard Wizard Coding Club

Displying meta-data in Wordpress

Guest wpdesign

Recommended Posts

Guest wpdesign



I´m intressted in displying the (metadata) the_date similar to this site,


(under Upcoming Clinics) http://www.sabian.com/en/articles


My code ( that doesn´t work),


<div class="newsFeed">

<span class="date">

<span class="month"><?php the_date('F'); ?></span>

<span class="number"><?php the_date('j'); ?></span>


<div class="newsThumb"></div>


Any easy way to solve that?

Link to post
Share on other sites

You've checked the Wordpress reference for the_date(), right? http://codex.wordpress.org/Function_Reference/the_date


One thing that immediately comes to mind: do you have this section of code within a Wordpress loop? (http://codex.wordpress.org/The_Loop) Is it getting other post information fine (the post title, for example), and just not displaying the date?

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...