I have a post type movie, which has a child type review. The review has a custom field for star_rating (0 through 5).
I want to apply a conditional for a view of the parent type based on the value of star_rating to apply additional css classes to 5-star movies.
I have one that seems a bit klugey so before I went ahead I wanted to make sure it wasn't simple.
here's my plan:
[archive-1: view listing movies] [movie-1: content template for movie] contains only view: review-1 [review-1: view returning highest-rated review of the movie] review-1 conditionally applies HTML based on star rating, wrapping it around: [movie-2: another template, containing the actual content for the parent of review 1] [/review-1] [/movie-1] [/archive-1]