Title: [Plugin: Custom Post Widget] Shortcode ?
Last modified: August 20, 2016

---

# [Plugin: Custom Post Widget] Shortcode ?

 *  Resolved [sireneweb](https://wordpress.org/support/users/sireneweb/)
 * (@sireneweb)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-custom-post-widget-shortcode/)
 * is it possible to use shortcode ?
 * [http://wordpress.org/extend/plugins/custom-post-widget/](http://wordpress.org/extend/plugins/custom-post-widget/)

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

 *  Plugin Author [Johan van der Wijk](https://wordpress.org/support/users/vanderwijk/)
 * (@vanderwijk)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-custom-post-widget-shortcode/#post-3111618)
 * Yes, you can use a shortcode to insert a content block in a page or post:
 * > [View post on imgur.com](https://imgur.com/1iyrM)
 * You can either click on the ‘Add Content Block’ icon above the WYSIWYG editor
   or insert the required shortcode in html view: `[content_block id= ]` (you will
   have to look up the content block ID).
 *  Thread Starter [sireneweb](https://wordpress.org/support/users/sireneweb/)
 * (@sireneweb)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-custom-post-widget-shortcode/#post-3111619)
 * thanks a lot 🙂
 *  [PC-Rider](https://wordpress.org/support/users/pc-rider/)
 * (@pc-rider)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-custom-post-widget-shortcode/#post-3111656)
 * Hi, nice to know that I can use a shortcode. Next question: How to find this 
   content block ID? It’s not visible to me when I make or edit the block I want
   to use. So how to find it’s ID?
    Thanks for developping this plug-in, we use 
   it a lot and it works marvelous!
 *  Plugin Author [Johan van der Wijk](https://wordpress.org/support/users/vanderwijk/)
 * (@vanderwijk)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-custom-post-widget-shortcode/#post-3111662)
 * Sorry for the confusion, when you use the button above the WYSIWYG/html editor
   there is no need for looking up the content block ID as you will then be able
   to select the content block using the title drop-down.
 * Otherwise, you can lookup the content block ID by hovering over the edit link
   on the content block posts overview page. The ID is then visible in the post=
   part of the URL. But, you normally don’t need this as you can use the add content
   block button from the screenshot I posted in my earlier reply.
 *  [PC-Rider](https://wordpress.org/support/users/pc-rider/)
 * (@pc-rider)
 * [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-custom-post-widget-shortcode/#post-3111663)
 * Hello Johan,
    Thanks, this morning I found out that the block id is the same 
   as the url in the block itself, displayed in the url, like: “../wp-admin/post.
   php?post=2916…”. The postnumber is the same as the ID. I could not use the drop-
   down method because of some buggy Firefox add-on. Removed this add-on and now
   everything works as you intended. I’m happy with it!!

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

The topic ‘[Plugin: Custom Post Widget] 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/)

 * 5 replies
 * 3 participants
 * Last reply from: [PC-Rider](https://wordpress.org/support/users/pc-rider/)
 * Last activity: [13 years, 7 months ago](https://wordpress.org/support/topic/plugin-custom-post-widget-shortcode/#post-3111663)
 * Status: resolved