Okay
  Public Ticket #773852
Related Posts by Current Post Category
Closed

Comments

  • Stephen started the conversation

    Hi,

    First off I am thoroughly happy with this theme you developed. Seems like you have thought of everything. There is only one piece I would like to see in our implementation if you can point me in the right direction. I have the child theme activated and simply want to have the related posts section that is at the bottom of the single posts pages to show only posts from the current category of the post's page the user is on. Not sure how difficult this is, but any help would be appreciated.


    Thanks in advance!

  •  895
    TheFox replied

    Hello Stephen, thanks for purchasing Thefox!

    I am glad you like our theme!

    If you want to change the related post to check the category and not the tags then please edit the single-default.php ( TheFox folder ) and change the line 500 from

    'post__in'      => $related,

    to

    'category__in' => wp_get_post_categories($post->ID),

    This should do the trick,

    Do not hesitate to contact us if you have more questions.

    Regards.