Title: show post image with shortcode
Last modified: August 22, 2016

---

# show post image with shortcode

 *  [Jürgen Hörmann](https://wordpress.org/support/users/hoermannj/)
 * (@hoermannj)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/show-post-image-with-shortcode/)
 * Hello.
 * Is it possible to show the post image if I embed a custom post block into a WP
   page via shortcode?
 * If yes how does the shortcode look like?
 * Thanks
 * [https://wordpress.org/plugins/custom-post-widget/](https://wordpress.org/plugins/custom-post-widget/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Johan van der Wijk](https://wordpress.org/support/users/vanderwijk/)
 * (@vanderwijk)
 * [11 years, 8 months ago](https://wordpress.org/support/topic/show-post-image-with-shortcode/#post-5375267)
 * Hi, it is currently not possible to show the post image when using the shortcode
   but it is an excellent idea and I shall put this on the list for future implementation.
 *  [Evan Mattson](https://wordpress.org/support/users/aaemnnosttv/)
 * (@aaemnnosttv)
 * [10 years, 11 months ago](https://wordpress.org/support/topic/show-post-image-with-shortcode/#post-5375428)
 * My plugin [Post Link Shortcodes](https://wordpress.org/plugins/post-link-shortcodes/)
   will allow for this for _any post type_ that supports the featured image as well
   as attachments in the upcoming 0.4 release.
 * The syntax for rendering an image using the content block’s featured image would
   be like this: `[content_block_img some-content-block-slug size=medium]` where
   size is an optional attribute which defaults to full size. You may also add any
   other attribute you wish which then translates into html attributes on the `<
   img>` !
 * To only return the image src, the shortcode is similar `[content_block_src]`.
 * Like I said, this isn’t possible with the current stable version, but if you 
   wanted to try it out before it’s released, you can always preview it by checking
   out the [source on GitHub](https://github.com/aaemnnosttv/post-link-shortcodes).
 * Depending on when you read this, it may already be released 🙂

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘show post image with shortcode’ is closed to new replies.

 * ![](https://ps.w.org/custom-post-widget/assets/icon.svg?rev=2884166)
 * [Content Blocks (Custom Post Widget)](https://wordpress.org/plugins/custom-post-widget/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-post-widget/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-post-widget/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-post-widget/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-post-widget/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-post-widget/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Evan Mattson](https://wordpress.org/support/users/aaemnnosttv/)
 * Last activity: [10 years, 11 months ago](https://wordpress.org/support/topic/show-post-image-with-shortcode/#post-5375428)
 * Status: not a support question