I have a loop that displays the posts from WordPress by category, but some posts are in two categories so on the home page where all the posts are shown, these post appears twice.
- “Example Post” is in “Category One” and “Category Two”
- When you see the posts of “Category One”, “Example Post” is there. The same happens when you see the posts of “Category Two”.
- But when you click “see all posts”, “Example Post” shows twice (because it’s in two categories)
Does anyone know how to “hide” this repeated posts?
Read more here: WordPress post in two categories. How to show once in home?