I am registering a custom post type (listing) with a plugin and it has two taxonomies. It all seems to work as expected.
I can display individual posts from the CPT using single-listing.php
but I can't display a full page using archive-listing.php
. I just tried taxonomy-organisation.php
which is the CPT taxonomy and this works too.
I am using a child theme and just used a copy of the parent archive/siingle/taxonomy pages
This is a copy of WP 2012 theme file which I named archive-listing.php
:
This is my CPT plugin:
This URL uses the archive.php file in the parent theme: