have to do a while have post to show for two custom post types sharing the same taxonomy?
have to do a while have post to show for two custom post types sharing the same taxonomy?
have to do a while have post to show for two custom post types sharing the same taxonomy?
Custom post type rewrite url structure with taxonomy and sub taxonomy
Apart from what I said in the comments — adding new roles should not be done on every (admin) init (here’s why), your code is actually good, but your post type is set to show under the custom admin menu named “Price Calculator” (see the ‘show_in_menu’ => ‘my-menu’ in your post type arguments), so you’d … Read more
Show in an entry a Custom Post Type associated to a post
Set Post Private if no linked Post Objects (ACF)
The problem is get_page_by_title, it defaults to post type page so you will need to tell it to target the correct post_type. Going by your post type sessions, this is what you need. get_page_by_title(‘Duck’, OBJECT, ‘sessions’); The second argument is the type of output, the default is OBJECT so thats what I used as well
A certain theme is forcing it’s singular post layout
Try using hook on update post meta for post update date. Something like code below, just change the company_title_meta and company_role_meta to your correct meta key. If something does not work, send a comment and I will try to help you add_action( ‘updated_post_meta’, ‘on_post_update_after_post_meta’, 10, 4 ); function on_post_update_after_post_meta( $meta_id, $post_id, $meta_key, $meta_value ) { … Read more
I found the fix without code. I installed the Rest API Helper Plugin and it now exposed the custom fields on a given post type.
How to specify user ID for a CPT wp_insert_post when there’s no actual user (it’s programmatic)