Plugin Directory

Changeset 207869


Ignore:
Timestamp:
02/19/2010 06:07:24 AM (16 years ago)
Author:
cbogdan
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • rss-related-posts/trunk/readme.txt

    r207858 r207869  
    3737== How to use it ==
    3838
    39 The function to call this plugin is <?php rss_related_posts(); ?>
     39The function to call this plugin is `<?php rss_related_posts(); ?>`
    4040You have a beautiful option that you can use, the custom field! By default this plugin will use your post title to figure out the rss related posts but sometimes this job doesn't give a relevant content so i come now with a solution. You create a new custom field in your post, with what key you want and in the value side you write some relevant word for your article.
    4141
    42 Ex: Custom Filed->  key = myrssposts ---- value = about best friends
     42`Ex: Custom Filed->  key = myrssposts ---- value = about best friends`
    4343
    4444 What else you can do? You can use a strongly value to be more relevant for the content. If in your custom filed value you will do not put any words between inverted commas, the rss related posts will be less relevant than if you will write some words between inverted commas. This job it's such a dick because the plugin use google blogsearch and on google if you want to find something exactly you need to put your words between inverted commas. Here is the same situation, but will work without this inverted commas.
    4545
    46 Ex: Custom Filed->  key = myrssposts ---- value = about "best friends"
     46`Ex: Custom Filed->  key = myrssposts ---- value = about "best friends"`
    4747
    4848When you finish to create your custom field, you have to repeat this creation in every post from now on and the next step is to configure the plugin to use this custom field. This step is very easy and what you have to do is to put the name of your custom field inside the php function, in the example case, like this :
    4949
    50 <?php rss_related_posts(myrssposts); ?>
     50`<?php rss_related_posts(myrssposts); ?>`
    5151
    5252You can makeup your rss result with two CSS classes that are inserted in the plugin code. One is for h2 tag, named 'rssheader' and one is for each item from rss results and is named 'rsscontent'.
     
    5454You can add this code in your style.css file:
    5555
    56 .rssheader {
     56`.rssheader {
    5757font-size: 16px;
    5858color: #444444;
    59 }
    60 .rsscontent {
     59}`
     60`.rsscontent {
    6161background: #eeeeee;
    6262border: 1px solid #dddddd;
    63 }
     63}`
    6464
    6565== Screenshots ==
Note: See TracChangeset for help on using the changeset viewer.