Is there a query string for edit.php to show all posts that have no custom taxonomy terms?
I wrote a plugin (http://wordpress.org/plugins/premium-posts/) that registers a custom taxonomy called 'sms_premium_posts' and adds a column to the post table in WP-Admin.
In that custom column, if a post has been marked 'Premium', the term 'Premium' links to a filtered list of only premium posts. This link is generated using the query string:
http://mydomain.com/wp-admin/edit.php?sms_premium_posts=premium
If a post is not marked as 'Premium', I would like the term 'Standard' to filter the list so the table only shows posts that are NOT marked as premium (i.e. posts with no taxonomy terms).
Is there a query string for that? Something like:
http://mydomain.com/wp-admin/edit.php?sms_premium_posts!=premium
You may ask, "Why not add the term 'Standard' to all other posts?" My reason for not doing that is, it would require tagging all existing posts with a custom taxonomy term when the plugin is activated...which seems pretty inefficient.
Thanks in advance!
I wrote a plugin (http://wordpress.org/plugins/premium-posts/) that registers a custom taxonomy called 'sms_premium_posts' and adds a column to the post table in WP-Admin.
In that custom column, if a post has been marked 'Premium', the term 'Premium' links to a filtered list of only premium posts. This link is generated using the query string:
http://mydomain.com/wp-admin/edit.php?sms_premium_posts=premium
If a post is not marked as 'Premium', I would like the term 'Standard' to filter the list so the table only shows posts that are NOT marked as premium (i.e. posts with no taxonomy terms).
Is there a query string for that? Something like:
http://mydomain.com/wp-admin/edit.php?sms_premium_posts!=premium
You may ask, "Why not add the term 'Standard' to all other posts?" My reason for not doing that is, it would require tagging all existing posts with a custom taxonomy term when the plugin is activated...which seems pretty inefficient.
Thanks in advance!
No comments:
Post a Comment