0

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?

Martin Monperrus
  • 1,845
  • 2
  • 19
  • 28

1 Answers1

0

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
Martin Monperrus
  • 1,845
  • 2
  • 19
  • 28