Tag Info

New answers tagged


I don't think you should manually update the wpdb or the post meta but search for the right settings in the plug-in. Maybe Yoast Seo can't see your custom post type because 'public' => true isn't set when cpt is created?


You are usgin an undefined $post->ID variable because there is no reference to any $post object in your code; instead, use the $post_ID variable retrieved in the function: function on_jobs_publish( $post_ID ) { global $wpdb; $wpdb->insert( 'iCrewzWp_postmeta', array( 'post_id' => $post_ID, ...

Top 50 recent answers are included