wp-cli create post and media import

There is just to display images BUT you can specify in which size the image(s) will be displayed. By default it’s size="thumbnail". Simply set it to size="full" to just get one full-sized image:

$ wp post create --post_title="Foobar" --post_content=""

More gallery shortcode options can be found on wordpress.com: https://en.support.wordpress.com/gallery/#gallery-shortcode

Leave a Comment