dalberts69
Forum Replies Created
Viewing 3 replies - 1 through 3 (of 3 total)
-
Forum: Plugins
In reply to: [ActiveCampaign for WooCommerce] Plugin update causes fatal errorCan confirm… removed old plugin, uploaded new, and activated. No issues so far.
Fixed here by capitalizing the directory
wp-content/plugins/backwpup/sdk/Aws/symfony
to
wp-content/plugins/backwpup/sdk/Aws/Symfony
Forum: Alpha/Beta/RC
In reply to: Show Categories Filter on Custom Post Type ListHopefully you found your answer, as it took me some serious searching and some combination of code to find this answer, but this is what worked for me:
add_action('restrict_manage_posts','my_restrict_manage_posts'); function my_restrict_manage_posts() { global $typenow; if ($typenow=='your_custom_post_type'){ $args = array( 'show_option_all' => "Show All Categories", 'taxonomy' => 'your_custom_taxonomy', 'name' => 'your_custom_taxonomy' ); wp_dropdown_categories($args); } } add_action( 'request', 'my_request' ); function my_request($request) { if (is_admin() && $GLOBALS['PHP_SELF'] == '/wp-admin/edit.php' && isset($request['post_type']) && $request['post_type']=='your_custom_post_type') { $request['term'] = get_term($request['your_custom_taxonomy'],'your_custom_taxonomy')->name; } return $request; }Hopefully this helps, and if anyone has suggestions how to improve it I’d be glad to hear it.
Viewing 3 replies - 1 through 3 (of 3 total)