Hello,
I want to make relevant posts to appear below the main post not on a sidebar. How can i do this? What code i have to use?
Thanks!
Hello,
I want to make relevant posts to appear below the main post not on a sidebar. How can i do this? What code i have to use?
Thanks!
This may work for you.
http://wordpress.org/extend/plugins/yet-another-related-posts-plugin/
The plugin is good but i want to display all the content of the related post not just the title. I want to make the inner pages to look like a homepage that shows, for example, 9 posts. But the posts under the main post to be related.
consider to code a secondary loop in single.php, below the main loop, to show those 'relevant' posts;
http://codex.wordpress.org/The_Loop
http://codex.wordpress.org/Class_Reference/WP_Query
you will need to define your criteria for 'relevant' in terms of tags, categories, or so...
Thanks, this is helpful information.
I have another question. Is it possible to add a code that will perform a search on page load and will list the results under the main post. I mean when a inner page is loaded the script will take the post title and perform a search for relevant posts and list them under the main post.
Is that possible?
Thanks!
I haven't tried it myself, but using the 'search' parameter in the query together with a list of keywords should work:
http://codex.wordpress.org/Class_Reference/WP_Query#Search_Parameter
You must log in to post.