Integrating Related Post plugin with a Yahoo Wordpress blog.
Related Post plugin for Wordpress is a very useful plugin which displays the related articles for the current post. The integration of this plugin to a Wordpress blog involves three steps.
- Upload the related post plugin files to the Wordpress plugin directory.
- Create a FULL TEXT index. Most likely you will end up running the query manually.
- Add the required function in your blog post to retrieve the related posts.
In order to integrate this plugin with Wordpress blog hosted in Yahoo, the first thing is to upload the files under the /<blog directory>/wp-content/plugins.
The phpMyAdmin has to be installed so that you can create the FULLTEXT index for your wp_posts table. Under the Yahoo Web Hosting Control Panel you will find Index tab, this tab will have a link for MYSQL database. Click MYSQL database link and create a admin user who will have the rights execute the query. Then Install the Admin tool (phpMyAdmin) after accepting the terms and condition you will be asked for the directory where you want to install the tool. Make sure that you create a another directory for this admin tool. If it is installed in the blog directory then your blog will not work properly because index.php will get replaced while installing phpMyAdmin tool.
After installing the tool, access the tool by using the following URL http://yoursite/<php directory>. You will be prompted for the username and password. After logging in run the query for creating the FULLTEXT index.
ALTER TABLE `wp_posts` ADD FULLTEXT `post_related` (
`post_name` ,
`post_content`
)
If you have more than one blog installed in your Yahoo site then make sure you prefix the wp_posts table in the above query accordingly. Now add the required related_posts(); code to you blog post logic. In case if you are using
<?php related_posts(5, 10, ‘<li>’, ‘</li>’, ”, ”, false, false); ?>
and if you want the related posts in a bullet list. Then the above code will work when you access your blog using Internet Explorer but not using Firefox. In order to fix this problem in Firefox added <ul></ul> tags before and after the above code.
Tags: related post plugin, Yahoo, Wordpress, phpMyAdmin, Install
Comments
Leave a Reply