Find posts with a specific meta key
which pages use a custom field | find noindex pages wordpress | search post meta wp cli | wp-cli | post-meta | postswp post list --post_type=any --meta_key=_yoast_wpseo_meta-robots-noindex --fields=ID,post_type,post_title --path=/var/www/vhosts/example.com/httpdocsFinds all published content of every post type where the given meta field is set. The default value finds pages that were individually set to noindex in Yoast SEO. Add --meta_value=1 to also filter by value.
Note: Without --post_status, only published content is included. wp post meta get <ID> <key> shows the value of a field.
Also searched as
- which pages use a custom field
- find noindex pages wordpress
- search post meta wp cli