Custom Taxonomy Overview page gives wrong "Filter Posts by Term" URL parameter
|Reported by:||tar.gz||Owned by:|
In the admin interface, if we go into Posts > Categories, or Posts > Tags, we see an table showing all our Categories/Tags. The right column of that table shows the number of Posts for each Category/Tag. That number is hyperlinked - when we follow it, we see a listing of all the Posts that have that Category/Tag.
For Categories, the link is built like this:
For Tags, it looks like this:
Now, let's say we create a Custom Taxonomy, called "foo". Automatically, WordPress gives us an overview of that taxonomy, at /edit-tags.php?taxonomy=foo - so far, all is good.
Let's say we have a taxonomy term named "bar". Let's imagine that the term has been applied to 3 Posts. If we click that number/link, we arrive at /edit.php?foo=bar
We expect to see a filtered list, showing the Posts that have the "bar" term assigned (in our example, 3 Posts).
The ?foo=bar parameter has no visible effect: it doesn't isolate the 3 Posts with the "bar" term. We see the complete list of Posts, without any filtering - the same as visiting /edit.php
If we manually change the URL parameter to make it look like this:
we do achieve the expected result: we see our list of 3 Posts. Hooray!
What needs to be done:
We need to change the function that generates those filtering URL parameters for Custom Taxonomies on the edit-tags.php page.