Display posts by taxonomy name
-
I’m creating a movie review site, and to create reviews I have created a custom post type for movie reviews. I also have created several taxonomies, such as movie genre. I want to allow people to click on a movie genre name and then they go to a page that displays all movie reviews associated with that genre. You can see it in action here for the movie genre “action”:
http://www.therighteousremnant.com/blog/index.php/movie-genre/action/
The problem is it displays the table twice due to recognizing that two movies fall under the “action” genre. If you click on the “horror” genre then you only see the table once (there’s only one movie review thus far associated with that genre).
What could be causing this? Here’s the code that displays the list of reviews according to the genre selected:
[Code moderated as per the Forum Rules. The maximum number of lines of code that you can post in these forums is ten lines. Please use the pastebin]
But I’m thinking there’s an issue somewhere else?
Any help is appreciated! Thanks.
The topic ‘Display posts by taxonomy name’ is closed to new replies.