Help Me Please.. Code PHP Wordpress

Status
Not open for further replies.

fedro$a

Member
10
2012
0
0
Hello All,

Show me please php code for single.php at wordpress (self host), how to make auto related keywords terms grap from title post.

Example:

Title Post: acer tablet

i wanna result auto related keywords: acer tablet pc windows 7, acer tablet review, acer tablet laptop

Thanks so much.
 
5 comments
This require lots of code, time, and programming skills, I have to say that probably you won't find it for free.
 
After a quick search in Google I have found:
http://www.veryrelated.com/related-api-v1-docs.php
http://www.veryrelated.com/related-api-v1.php?key=sampleapikey&base=acer

You can use the get_the_title() function, then explode() the post title to words, then use an api like above to get related words. In your place I would do this on post creation, and not call the api everytime. For this, you need to modify the functions file, not single.php. You will need to add something like
PHP:
function get_related_keywords() {
  // get related keywords
  // and store them as post tags or custom fields
  // ...

}
add_action('publish_post','get_related_keywords');
Then display them wherever you want.
 
Status
Not open for further replies.
Back
Top