View Single Post
  #1  
Old 03-24-2011, 10:43 AM
 
keystone keystone is offline
 

X-Adept
  
Join Date: Jul 2006
Location: USA
Posts: 787
 

Default combining truncate and replace

I am trying to remove the commas from my meta_keywords variable and replace them with nothing "" in this line

Code:
{$_meta_keywords|truncate:"130":"":false|escape}

and truncate it to the 5th word. (I haven't started on the "5th word" part) This is what I was trying without much success along with a couple of other variations.

Code:
{$_meta_keywords|replace:",":""|truncate:"130":"":false|escape}

Anyone know how to do that?
__________________
www.uscandleco.com - X-Cart Version 4.7.11 Gold Plus php7.3
mods:
reCaptcha
running on UNIX

www.keystonecandle.com X-Cart Gold Plus - Version 4.7.11 php7.2
mods:
reCaptcha
cdseo pro
running on UNIX
Reply With Quote