I am attempting to generate a list of all posts and their corresponding meta descriptions from the command line via ssh. I am able to connect to the host environment fine, but my command is only returning the last post and its meta description instead of all of them.
Note:
- I use Yoast to manage the meta data.
- I am able to make the SSH connection.
Here is my code:
wp post list --fields=ID,post_title,post_type,post_status,_yoast_wpseo_metadesc --meta_key=_yoast_wpseo_metadesc