Site logo

Archived topic

Exclude category or specific posts from related posts

16 replies · Started by Olaniyi on September 16, 2020

Viewing posts 1–15 of 17

Yes, it should solve the problem.

Glad to hear :)

Hi, Can you help with a sample code, struggling to solve it by myself.

I got this part, the code I was asking for:

If I want this to work for a specific category rather than the whole website.

This works, Thanks!

No problem :)

Hello, Is it possible to prevent some specific posts from showing in the post navigation? For example, if I have some posts unsuitable for kids, and I don't want them to show under any post navigation, how would I exclude these posts?

Hi,

Consider creating an R-18 category for posts that are not suitable for kids/minors.

You can then exclude that R-18 category the same way you've excluded the other categories.

Yeah, that would work but it is not ideal in the current situation, which is why I reopened the topic.

Is there any post specific situation, maybe excluding with post ID, something like that?

Alright, I will keep at it, thanks.

This archived topic is closed to new replies.