Support » Plugin: Wp Custom CMS Block » Single Post

Viewing 1 replies (of 1 total)
  • Plugin Author digontoahsan


    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.

    	$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.