Support » Plugin: Kadence Blocks – Gutenberg Page Builder Toolkit » Using Kadence Blocks in a template setting for a custom post type

  • Hi there Ben and team! I just purchased the pro version of this and I’m really loving the possibilities involved here. It’s making it much easier for me to upgrade my older workflow for building custom sites to Gutenberg.

    One thing I’m trying to figure out how to do is how I might use your rows and columns to establish default layouts for custom post types. I have the following template defined and declared with my CPT:

    $template = array(
    		   
    		    array( 'kadence/rowlayout', array('colLayout'=>'right-golden', 'topPadding' => 0, 'bottomPadding'=> 0,), array(
    		        array( 'kadence/column', array(), array(
    		            array( 'acf/featured-image', array() ),
    		        ) ),
    		        array( 'kadence/column', array('id'=>'2'), array(
    		            array( 'core/paragraph', array(
    		                'placeholder' => 'Add your main book description here...'
    		            ) ),
    		        ) ),
    		    ) )
    
    		);

    I was trying to reverse engineer what settings I would need to pass to get this to work. This works when initially creating the posts, but when I edit them again, it tells me I have invalid markup. Can you give me any pointers on how I should call kadence blocks in this format so that I can set up some pre-defined templates for my projects on a post type basis? Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using Kadence Blocks in a template setting for a custom post type’ is closed to new replies.