custom post types – How can I use a page for my archive and still use Elementor for singles?


I created a CPT “projects” with JetEngine and instead of displaying the CPT archive at “/projects/”, I would like to use my own page which lists some top-level categories.

I switched off the “has_archive” flag for the CPT, but this means I can’t create Elementor templates for the singles or taxonomies.

To achieve what I need, I have created my “page” as an archive template and ignored the main query, but this feels inefficient.

How else can I achieve this, preferably using JetEngine to register the CPT?

Alternatively, how can I prevent WordPress from performing the main query for this page?

jamieburchell 1 year 2021-08-22T17:17:43-05:00 0 Answers 0 views 0

Leave an answer