The Most Active and Friendliest
Affiliate Marketing Community Online!

“Propeller”/  Direct Affiliate

PHP help please...

C

crumblepie

Guest
Hi there,

Im currently revamping my site and adding in a blog using wordpress, but for some reason whenever i display a post all it does is show the current date, does anyone know the php for displaying the date the post was originally published please?

Thanks in advance.. :confused:

Oh, and this is my current code :
<div align="center">
<?php
echo date("M");?>
</div></td>
</tr>
<tr>
<td><div align="center">
<?php
echo date("d");?>
</div>
 
Hi There,
I see no one has replied to your thread, so let me give you my two cents here.
If you are doing static HTML pages, it is easier just to type in the date yourself. Trying to find a PHP function for this is complicating things for yourself. If you are creating the posts using Word Press, it can be set to show the date the article was published. I dont think you will find a PHP function out there that will show the date you posted the article.

Does that answer your question?

Cheers
 
Wordpress should automatically display the date the post was published. It always does that. Seems you may have a problem in your theme or something.
 
In your admin panel, go down to Settings ----> Permalinks.

From there you can change how your posts get shown and listed.
 
Actually, the permalinks area only controls how your posts URL is displayed. If you wish to alter how many posts are shown at a time, or whether to have a static front page, then you'd need to visit the Settings=>Reading panel.
 
banners
Back