Show Only Category (Not Subcategory) Content
If you ever wanted to only show the content of the category you were on in the category view of WordPress (instead of the category you are on plus all of it’s subcategories – you can easily do so by adding the code below to the template that is used to show your category content
You would start your loop with this:
Put your title, content functions here
and where you normally see the call, put to close the additional (in_category) if statement.
This code gets the current category and then only displays categories that are in that category (not sub category)
i tried your code!
and it doesn’t work!
Send over your code so I can see it and help you.
Thank you
Thankyouthankyouthankyou! This totally works and was EXACTLY what I needed! Thanks so much.
I am glad I could help!
Is there anyway to get this to work on the homepage?
Perfect! Thank you!
PERFECT with triple !!!!
it works great was looking for it for hours you made my day
Glad I could help!
Thanks so much. This is EXACTLY what I needed.
How can i implement these codes,,can you show the whole code