• Resolved masjmh

    (@masjmh)


    Hi All,
    I am testing the theme on local computer. I have created 4 different category. CAT1, CAT2, CAT3 and CAT4. If I upload the post through form than the Post is uploaded in the selected category. I see the post also in the category. This is o.k. But If I open the post for e.g. CAT1 than in the bottom the feature images of other category (cat2, cat3 and cat4) is also shown in CAT1. Is there any possibility to show the feature image of only CAT1 in Category 1. The same for other category.
    Thanks a lot

Viewing 1 replies (of 1 total)
  • As I understand the function “hitchcock_related_posts” (which is responsible for the related posts below a post), it only falls back to posts in other categories, when there are no (ot not enough) posts in the same categorie:

    Line 327 of functions.php:
    // No results for the categories? Get random posts instead

    You could copy the function into a child theme and slightly change it there.

    Probably just removing the if code between line 327 and 334 would be enough.

    But be careful. I’m not a programmer ??

Viewing 1 replies (of 1 total)
  • The topic ‘Show Post per Category only’ is closed to new replies.