• Hi all,

    I am using the Fancy Date Stamp plug in to make the dates on the homepage look better.

    However the date that gets pulled is changes to todays date rather then displaying the post date.

    https://blog.blueventures.org/

    here is the code:

    function insert_date_stamp() {
    
    	$tday = date("d");
    	$return_string .= "".stylesheet()."
    		<div class='post-header'>
    		<div class='stamp-container'>
    			<span class = 'day'>".$tday."</span>
    			<span class ='month'>".getmonth()."</span></div>
    			<small class = 'categories'>categories: ".categories()."</small>
    		</div>";
    
    	return $return_string;
    
    }

    Any clue as to why its always showing the current date and not post date?

    thanks!

  • The topic ‘Date code not working’ is closed to new replies.