Set or change the default template in classic editor for custom post type
I have a custom post type called podcast_episode
registered in functions.php
.
New REST API endpoint for WordPress that uses WP_Query to search custom post type for matches
I’m trying to set up a new custom REST API endpoint for our wordpress site. I believe I have that part working correctly. The issue I cannot seem to figure out (even after extensive googling and asking Microsoft Copilot and Gitlab Duo Chat) is how to use WP_Query to successfully search for post types by passing a list of url parameters throught the REST API url.
WordPress Custom Post Type not allowing Parent/Child pages
Quite stuck on this one. I have a CPT set up and it’s working just fine, except for one small issue. The ‘Parent’ select box does not show up under the ‘Page Attributes’ meta box. I’ve checked and rechecks, so I unless I am missing something really obvious, I am at a loss as to why this is happening. Here’s the code:
Show “Add New” button only for current CPT
I made a custom CPT “Blog” and disabled the standard “Posts” CPT. However, when I’m on a Blog single or archive page, the “Add New” button lets me create a Post, not a Blog which is problematic because my client will create a post and then not be able to find it. When I hover over it gives me all the options of post types to add a post in.