WP Plugin – RSS Related Posts

Publicat de Cristescu Bogdan
September 12th, 2009 | 13 Comentarii

1155 vizualizări, 2 doar azi

This plugin shows a list of related post, called by rss.

Do you think that you’re the only one who is writing about these things? Honestly, if my answer disappoints you, you should know that you’re not the only one who is writing about these things. So, in this point comes this plugin to help you.

You could generate a link list of articles from other blogs, simply adding a custom field. The generated list it’s based on Google BlogSearch, this means that in the created custom field, the value, will be a construction of keywords, which will be able to show other articles from other blogs, having the same subject.

Installation

If you want this plugin to work for your blog, follow the steps:

  1. Download the plugin and extract files.
  2. With a FTP client (if you use Firefox, I recommend FireFTP) put the plugin directory in /wp-content/plugins.
  3. Enter in Dashboard and activate this plugin in Plugins section.

How can I use this great plugin?

This plugin needs a dedicated space on your blog, to rule. Here are some methods of showing the RSS list of Related Posts:

  • Acces “Theme editor” (Dashboard->Appearance->Editor) and select to edit  “Single post” that is single.php file from your wordpress theme. Search in cod <?php the_content();?> and replace it by :

<?php
the_content();
echo ‘<h2>Other articles about the same subject</h2>’;
rss_related_posts(10);
?>

  • Acces “Theme editor” (Dashboard->Appearance->Editor) and select to edit  “Single post” that is single.php file from your wordpress theme. Search in cod <?php the_content();?> and put this code after:

<?php
echo ‘<h2>Other articles about the same subject</h2>’;
rss_related_posts(10);
?>

  • Acces “Theme editor” (Dashboard->Appearance->Editor) and select to edit  “Single post” that is single.php file from your wordpress theme. Search in cod <?php the_content();?> and put this code after :

<?php
echo ‘<div id=”rss-related-posts”>’;
echo ‘<h2>Other articles about the same subject</h2>’;
rss_related_posts(10);
echo ‘</div>’;
?>

Then edit style.css and add the <div id=”rss-related-posts”> statements, that are:

#rss-related-posts { width: 90%; padding: 10px; margin: 15px auto}
#rss-related-posts { border:none; background:transparent none repeat scroll 0 0}
#rss-related-posts ul {border: none; margin-bottom: 5px;}
#rss-related-posts ul li {padding: 5px 0px; border: none}

Or be cretive and use next to the basic function of showing the plugin , that is <?php rss_related_posts(10); ?> anything in anyway you wish. Please , just let me know, I’m curious what you can do with this plugin.

After that, just add a new custom field on every article or post. That custom field must be named Subject (attention at the first letter, must be S not s) and the value of that custom field is the word or the phrase which the rss related posts list want to be about. Let me illuminate you, if your article is about how to make a pizza, you should have the value of the Subject custom field as “make pizza” or “how to make pizza” , dependig, on which results are more appropriate to what you want. You can check the rss related posts list on your post page, perhaps you change your mind then you can edit that custom field and the list would change to.

FAQ of how to use!

Q: The 10 number from the function can be replaced?

A: Yes!The 10 from the code expresses the number of links from the list. You can change it with any number you want from 1 to 20 (the maximum value accepted for links in RSS mode is 20, but if  there are activated settings, there will be shown maximum 10).

Q: The value of the Subject custom field can be used more complex?

A: After you chose how to represent the list of the quoted links, you have to add to your articles the magic so that the list can be shown. Edit the article and add a new custom field with the name Subject and with the value described through keywords separated by space.The value of this custom field can be a logic phrase (ex: how to make money) or may be a group of words that can be find in your article (ex: school, techer, exams). A secret aplicated to this custom field, which counts on the search rule of google of exact phrases, it’s good to be taken into consideration. That is, if the quoted phrase is writen between inverted commas (Ex: “how to make money”), the list shown on your blog will contain links to other articles that have exactly the same phrase. The difference between is that, if , in the first case, the results will contain even separated words, in the second case we will have just tha compact phrase.

Urmăreşte comentariile prin Feed/RSS

13 comentarii pentru articolul “WP Plugin – RSS Related Posts”

  1. haber Spune:

    Works great, thank you

  2. Cristescu Bogdan Spune:

    Welcome! I’m glad it works.

  3. lala Spune:

    hi, how can i do to make it display not only links, but also descriptions of those related posts?

  4. lala Spune:

    “This plugin needs a dedicated space on your blog.”
    what does it mean?

    i use share hosting, so this plugin will not work?

  5. Cristescu Bogdan Spune:

    For the 1st question, i dont think there is an description for a post. So if you wanna display something from a post, you can do that for : tags, category, date, author , title and content.

    So, if all this informations are considerated the description of the posts, you cant display all this information, only title and content. But, i can make a new version of this plugin to put this options in.

    If u wannt that, let me know :)

  6. Cristescu Bogdan Spune:

    “This plugin needs a dedicated space on your blog.”

    I mean, you must have a dedicated space on your theme design. This is the better way to display.

    This plugin well create a title in to <h2> and </h2> tags, and the content, to the <p> and </p> tags, so if u wanna do a good work, make a special box in your css, make a new div in your template, and put the plugin there.

    I made something like that a the top of my blog, the right corner, the green box!

  7. lala Spune:

    Sorry, I am newbie. I still cannot figure out how to make it work.
    I uploaded the plugin, actived it and replaced <?php the_content();?> with

    <?php
    the_content();
    echo ‘<h2>Other articles about the same subject</h2>’;
    rss_related_posts(10);
    ?>
    But after I did the things, it do not show any related post?
    Did I do anything wrong?

  8. Cristescu Bogdan Spune:

    You must create a custom field with the name “Subject” and the value must be the subject of your post. Then the plugin will show in the post, the rss related posts list.

    If u have a post about music, you can create a custom field with the name Subject and the value “about music”.

    This plugin will show a list of another posts from other blogs “about music” or about your value of the custom field that you create it!

    Read all my informations about this plugin, here in this post!

  9. lala Spune:

    can this be automatic?
    I mean, can you make this plugin display related posts based on the title of a post?
    say I publish a post named “How to Make Money Online”, then this plugin automatically fetch  related posts about how to make money online.
    is it possible?

  10. lala Spune:

    hey man, I did it :)
    thank you for your plugin
    good luck

  11. Cristescu Bogdan Spune:

    I`m glad you did it. About the automatic mode, i though about it,but i found some inconvenience.

    The post title contains many words, some titles have a whole description. For this plugin is essential  to display some posts with the minimal description that is in the custom field value. The title is something more than that, so i don`t think there is a SEO mobility. If u make your post title more shortly to show the RSS related posts correctly,  it would be ok but for your SEO optimisation that won`t be ok.

    If i will find any solution, i will create this plugin to work automatic. Maybe with the tags … but every time would be a “but” :)

     

  12. IrragdiartJam Spune:

    Hei Depressing klooper expropriate in reinforce of my english jer, buti vertical nice re reciprocate .

  13. Henappenna Spune:

    hey, how ya doin’? :) 2
    cheers from lv! 5