I have 3 post types created in GeoDirectory:
- gd_place
- gd_event
- gd_people
I’m customizing geodirectory-archive.php for category pages and I’m having trouble getting the “post_type” value from query_vars for gd_people category pages. It works for gd_place and gd_event category pages, but not gd_people. Here’s example:
- People (gd_people) > Coaches – https://tennisletics.com/explore/people/category/coaches/
- Place (gd_place) > Resorts – https://tennisletics.com/explore/places/category/resorts/
Notice when you inspect code, the body classes are slightly different indicating the use of different template:
- People category – “tax-gd_peoplecategory term-coaches term-166”
- Place category – “post-type-archive post-type-archive-gd_place”
In summary, it looks like Place and Event categories are displaying as post type archives, but People categories are displaying as taxonomy archives.
Anyway I can make People category pages display like Places and Event category pages; post type archive rather than taxonomy archive?