[wp-trac] [WordPress Trac] #40644: Category filter for custom post type
WordPress Trac
noreply at wordpress.org
Wed May 3 03:05:33 UTC 2017
#40644: Category filter for custom post type
----------------------------+-----------------------------
Reporter: mr.tonyhuynh | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Administration | Version: 4.7.4
Severity: normal | Keywords:
Focuses: |
----------------------------+-----------------------------
I have a new custom post type called "product".
I attached "category" to that cpt.
{{{#!php
<?php
$args = array(
'public' => true,
'has_archive' => 'true',
'menu_position' => 6,
'supports' => array( 'title', 'thumbnail', 'editor'
),
'taxonomies' => array( 'category', 'post_tag ' ),
'label' => 'Products',
);
register_post_type( 'product', $args );
}}}
----
When I use the filter category (http://prntscr.com/f3g6vh) ...
It automatically switches to the post type "post" instead "product".
(http://prntscr.com/f3gcou)
And maybe add a field s though I just clicked the filter button but did
not click the search submit (empty search field).
http://prntscr.com/f3gy2y
--
Ticket URL: <https://core.trac.wordpress.org/ticket/40644>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list