WordPress Related Posts
how to add related post on category pages (2 posts)

  1. baadshah26gold
    Posted 3 years ago #

    dear sir
    i am using related post plugin which show related post on single post below and i am using one post page and in category pages related post not shown how can i add these.
    please help me
    and thanks in advance


  2. baadshah26gold
    Posted 3 years ago #

    I get solution
    by alchymyth
    The Sweeper & Moderator
    this great person

    if ($post->post_type === 'post' && (($options["on_single_post"] && is_single()) || (is_feed() && $options["on_rss"]))) {

    and possibly change that to:

    if ($post->post_type === 'post' && (($options["on_single_post"] && (is_single() || is_category()) ) || (is_feed() && $options["on_rss"]))) {

    not widely tested - will obviously get lost when you update the plugin.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WordPress Related Posts
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic