View Single Post
Old 04-22-2010, 11:04 AM  
just a punk
So fuckin' bored
 
just a punk's Avatar
 
Industry Role:
Join Date: Jun 2003
Posts: 32,350
Keyword Linking

Many customers ask me: "How to link some particular keywords in the aggregating post to the specified URL's? Is that possible to add such a 'feature' to CyberSEO Suite?"

TRICK: CyberSEO Suite doesn't need any special "feature" for this, because the mentioned task can be easily done by means of custom PHP code. Simple insert the following code into the "PHP Code <?php .. ?>" field on RSS feed options page:

PHP Code:
$wordlinks = array (
// Enter your list of words/links as shown in the example below ("word1|link1", "word2|link2" etc ):
"morphing|http://www.morphingfeeds.com/"
"seo|http://www.cyberseo.net/"
"message board|http://www.gfy.com/" 
);
foreach ( 
$wordlinks as $wl ) {
   list ( 
$word$link ) = explode "|"trim $wl ) );
   
$post ['post_content'] = preg_replace "/(".$word.")/i""<a href=\"$link\">\\1</a>"$post ['post_content'] );

Now save the RSS feed settings and enjoy with the result!


Have a nice day
__________________
Obey the Cowgod
just a punk is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote