Title: Single Post
Last modified: August 21, 2016

---

# Single Post

 *  Resolved [kamil1111](https://wordpress.org/support/users/kamil1111/)
 * (@kamil1111)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/single-post-4/)
 * Hi,
    how can I enable custom blocks in a single.php?
 * > <?php the_field(‘name’); ?>
 *  it’s not working now.
 * Thanks.
 * [http://wordpress.org/extend/plugins/wp-custom-cms-block/](http://wordpress.org/extend/plugins/wp-custom-cms-block/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [Ahsanullah Akanda](https://wordpress.org/support/users/digontoahsan/)
 * (@digontoahsan)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/single-post-4/#post-3931744)
 * You can use shortcode in page or post editor as content. Also you can use shortcode
   in single.php or in any template file like –
    `<?php echo do_shortcode('[block
   id="1"]');?>` You can use php function get_wpcc_blocks() to get all blocks in
   an associate array.
 *     ```
       <?php
       	$allblocks = get_wpcc_blocks();
       	echo $allblocks['blockone'];
       ?>
       ```
   
 * Here ‘blockone’ is block id.

Viewing 1 replies (of 1 total)

The topic ‘Single Post’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-custom-cms-block.svg)
 * [Wp Custom CMS Block](https://wordpress.org/plugins/wp-custom-cms-block/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-custom-cms-block/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-custom-cms-block/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-custom-cms-block/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-custom-cms-block/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-custom-cms-block/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ahsanullah Akanda](https://wordpress.org/support/users/digontoahsan/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/single-post-4/#post-3931744)
 * Status: resolved