Create an archive page for custom taxonomies

It looks like your issue is the name of your taxonomy has a capital letter, the first argument of register_taxonomy is to be all lowercase, no spaces as the documentation for the register_taxonomy function mentions here. Change your code to the following and your taxonomy-gallery.php template will work correctly. register_taxonomy( ‘gallery’, array( ‘photo’ ), array( … Read more

How can i link post_row_actions() with a custom action function

You’d have to use the $_GET method. Here, I’m hooking in admin_head-{$pagenow}, depending on your functionality maybe you’ll need to hook in load-{$pagenow}. Prefix your var names to not colide with any WordPress internals, in this case my-update for the action name: edit.php?post_type=league&action=my-update&post_id Sample code: add_action( ‘admin_head-edit.php’, ‘custom_get_http_wpse_82761’ ); function custom_get_http_wpse_82761() { global $typenow; if( … Read more

Set post title from two meta fields

You are using wrong variable on the following line: $data[‘post_title’] = $post_title; you should use $event_title in $post_title as following: $data[‘post_title’] = $event_title; Also Get Post ID from $postarr parameter. Updated Code : function set_event_title( $data , $postarr ) { if($data[‘post_type’] == ‘events’) { $event_date = get_post_meta($postarr[‘ID’],’event_datetime’,true); $event_venue = get_post_meta($postarr[‘ID’], ‘venue_name’ , true); $event_title = … Read more