![]()  | 
	
	
		
 Adding the date to Meta Description 
		
		
		
		Been searching for a simple answer for this one - I'm sure there is one! 
	In meta.pl there is the code Code: 
	{meta type='description' page_type=$meta_page_type page_id=$meta_page_id}Now I want to add the date (generated by php with something like PHP Code: 
	
		
		<meta name="description" content="4th July 2011 - [description for page from database]" /> Is there a way to do this in Smarty?  | 
	
		
 Re: Adding the date to Meta Description 
		
		
		
		You might want to try the '{php}' and '{/php}' tags. 
	http://www.smarty.net/docsv2/en/language.function.php.tpl  | 
	
		
 Re: Adding the date to Meta Description 
		
		
		
		Quote: 
	
 I agree ... but where and how ....  | 
	
		
 Re: Adding the date to Meta Description 
		
		
		
		Using {php} tags in smarty is not recommended. Better modify /include/templater/plugins/function.meta.php to include whatever you want in the meta description 
	 | 
	
		
 Re: Adding the date to Meta Description 
		
		
		
		Quote: 
	
  | 
| All times are GMT -8. The time now is 10:30 PM. | 
	Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.