Yoast / wordpress-seo

Yoast SEO for WordPress
https://yoast.com/wordpress/plugins/seo/
Other
1.78k stars 895 forks source link

seo_kw_filter does not filter posts in WP Admin #17508

Open kory-northrop opened 3 years ago

kory-northrop commented 3 years ago

Please give us a description of what happened.

The seo_kw_filter option does not properly filter results, it returns all posts instead. I tested with all other plugins disabled as well. I saw a similar ticket (#7772) that was supposed to be resolved via #9354, but I'm finding that the issue still exists.

Please describe what you expected to happen and why.

I expect the post table to display only posts that match the seo_kw_filter parameter's value.

How can we reproduce this behavior?

  1. Make sure you have a few posts that have the same Focus Keyword

    Screen Shot 2021-10-11 at 12 54 36
  2. Edit one of the posts and click the warning about other posts using the same keyword.

    Screen Shot 2021-10-11 at 12 55 10
  3. Follow the link to see that the filter is added to the URL, but the post results are not actually filtered. The same is true if you manually add the seo_kw_filter URL parameter with other filters (e.g. http://example.com/wp-admin/edit.php?seo_kw_filter=education&post_type=page)

    Screen Shot 2021-10-11 at 12 54 52

Used versions

Djennez commented 3 years ago

The filter only works on posts, not on any other posttypes. And from my own testing, that looks to work correctly. Can you verify that this bug is about other posttypes than normal posts?

kory-northrop commented 3 years ago

I did not know that this filter was only for the "post" post_type, I was trying to use it with the "page" post_type. However, I just tried using it for "Posts" on our staging site with all plugins deactivated and the Twenty Twenty One theme enabled and am still not getting the filter to actually limit the returned posts to those with matching Focus Keywords.