autotemplate returning wrong results?
-
I’ve created two Custom Post types. Bands (band) and Clubs (club). Both have Enable Archive Page set and identical settings. Both have autotemplates enabled, and each are set with their own singular template (club and band) and list template (‘club archive’ and ‘band archive’).
Both list templates are identical with the exception that the club template has:
[if club] [each club]
at the start of the template so it displays the template for each entry and the band template has:
[if band] [each band]
If you go to https://thegothcalendar.co.uk/bands/ you correctly get the list of bands set up in the bands custom post type.
If you go to https://thegothcalendar.co.uk/clubs/ you get bands instead of clubs.
I have no idea why or how to debug!
- The topic ‘autotemplate returning wrong results?’ is closed to new replies.