Changeset 207869
- Timestamp:
- 02/19/2010 06:07:24 AM (16 years ago)
- File:
-
- 1 edited
-
rss-related-posts/trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
rss-related-posts/trunk/readme.txt
r207858 r207869 37 37 == How to use it == 38 38 39 The function to call this plugin is <?php rss_related_posts(); ?>39 The function to call this plugin is `<?php rss_related_posts(); ?>` 40 40 You 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. 41 41 42 Ex: Custom Filed-> key = myrssposts ---- value = about best friends 42 `Ex: Custom Filed-> key = myrssposts ---- value = about best friends` 43 43 44 44 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. 45 45 46 Ex: Custom Filed-> key = myrssposts ---- value = about "best friends" 46 `Ex: Custom Filed-> key = myrssposts ---- value = about "best friends"` 47 47 48 48 When 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 : 49 49 50 <?php rss_related_posts(myrssposts); ?> 50 `<?php rss_related_posts(myrssposts); ?>` 51 51 52 52 You 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'. … … 54 54 You can add this code in your style.css file: 55 55 56 .rssheader {56 `.rssheader { 57 57 font-size: 16px; 58 58 color: #444444; 59 } 60 .rsscontent {59 }` 60 `.rsscontent { 61 61 background: #eeeeee; 62 62 border: 1px solid #dddddd; 63 } 63 }` 64 64 65 65 == Screenshots ==
Note: See TracChangeset
for help on using the changeset viewer.