CPT – Can’t delete Draft posts

I managed to fix it. First I tried to disable plugins but that did not help. The issue was found in functions.php. It had a function inside that does not allow an article to be published unless it has a featured image. When I commented it out and tried deleting the articles, it started working … Read more

Custom Post Types using wrong template (index) instead of archive-{type}.php – previously worked as expected

The issue was, in fact, the new taxonomy using “year” clashes with the query. WordPress was accepting year=about-us in the query chain for instance, as year was a taxonomy, before the expected page=about-us – preventing it from appearing as a page and using the index.php template as there is no “year” template. I changed year … Read more