Getting Custom Post Type Meta on Publish
Getting Custom Post Type Meta on Publish
Getting Custom Post Type Meta on Publish
Group CPT posts by custom taxonomy
I thought of using get_delete_post_link(), but I have no clue how to get the correct link to the correct post and where to implement this. Maybe using an event listener? I am so lost.. Either passing in the post ID, or making sure you’re inside a post loop would work, but since you mentioned this … Read more
get_post_meta not working on publishing
function force_type_private($post) { if ($post[‘post_type’] == ‘my_post_type’) $post[‘post_status’] = ‘private’; return $post; } add_filter(‘wp_insert_post_data’, ‘force_type_private’); please try above code, I hope this will work for you.
register_post_meta show “Null”
I want to create custom post in which user can share files like PDF & DOCx
WordPress CPT save metadata in gutenberg
Show custom post type relationships by taxonomy
How to get post type and month/year before while loop for date.php file