daily gadgets, computers, and electronic news
18/04
2005

Modify Related Post plugin

Sponsored Links

This little mod will make the Related Post plugin more powerful :)

To update the plugin:

  1. Copy code from the next page
  2. Open related-posts.php from Plugin Editor page on the Admin Control Panel.
  3. Go to line 52. It should read if (! function_exists("related_posts")).
  4. Scroll down a little bit and find line contains: // End of related_posts. It should be on around line 110.
  5. Now remove line 52 until above line, and replace it with the new code you’ve copied from this page. Save.
  6. The new related_post function will now have 2 extra parameter, $before_last_title and $after_last_title. Modify your theme to match the new function. Mine is: Related Post: < ?php related_posts(5, 10, '', ', ', '', '', false, false,' and ','.'); ?>

Have fun! :d

Pages: 1 2

Modify Related Post plugin is written by cosa and posted under Programming, WordPress , . If you like it, you might consider subscribing to our feed, follows us on Twitter, or receive our latest posts via email. Or else, you could also or store it to your favourite social bookmark sites. Further information about this article can be found.

No Comments »

No comments yet.

Leave a comment