You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I add post_tag taxonomy support to a custom post type via ->taxonomy("post_tag") a select filter will automatically be added to that post types edit.phpAll Posts dashboard page.
However, the filter doesn't work. This only happens specifically for Wordpress's post_tag taxonomy. Select filters for all custom taxonomies work as expected.
Maybe you/someone has a quick answer or idea, why this is happening. But I'll try to find the time to debug this issue otherwise. Thanks :)
I believe the issue is caused by using the taxonomy name post_tag for the field name (PostType.php#L430), when the query var needed is tag.
I was working on a fix but making the changes needed here caused another issue where the filtering did not work with other taxonomies. I need to investigate this further.
When I add
post_tag
taxonomy support to a custom post type via->taxonomy("post_tag")
a select filter will automatically be added to that post typesedit.php
All Posts dashboard page.However, the filter doesn't work. This only happens specifically for Wordpress's
post_tag
taxonomy. Select filters for all custom taxonomies work as expected.Maybe you/someone has a quick answer or idea, why this is happening. But I'll try to find the time to debug this issue otherwise. Thanks :)
PHP Version: 7.4
WordPress: 6.1.1
jjgrainger/posttypes: 2.2
The text was updated successfully, but these errors were encountered: