By default, “wp-cli get” does not render shortcodes.
I want to render the shortcodes in HTML, to check what the end-user sees in her browser.
How to do this?
By default, “wp-cli get” does not render shortcodes.
I want to render the shortcodes in HTML, to check what the end-user sees in her browser.
How to do this?
This can be done with wp-cli/restful.
# installing restful
wp-cli package install wp-cli/restful
# rendering a post containing a shortcode
wp-cli rest post list --slug=example-post-containing-short-code --field=content