Jump to content

meta tag keyword help


Sweets287

Recommended Posts

for the keywords of my site I pull the information from my database, but i'm struggling to spilt field down into seperate words, so that each word is a keyword as well as a key phrase. It works fine but except for it only uses the last word from the phrase. Any ideas?

 

$string = $title_name;

$split_title = explode(" ",$string);

foreach ($split_title as $subtitle)

{

$meta_keywords = ' '.$name .', '.$title_name.', '.$cat1. ', '.$cat2. ', '.$subtitle. ', '.$name.' '.$subtitle.',  '.$cat1. ' '.$subtitle. ';

}

Link to comment
https://forums.phpfreaks.com/topic/116841-meta-tag-keyword-help/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.