[plugin: multiple content blocks] editor doesn't work
-
I created a new template with the the_block(‘name’); code but the plugin always says:
There are no content blocks in this template.
Below is my template. Can someone please let me know what I am doing wrong?
<?php /* Template Name: custome-page Notes: Use this template for multiple content blocks */ ?> <?php get_header(); ?> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <div class="post" id="post-<?php the_ID(); ?>"> <div class="CommonTitle"><h1 class="CommonTitle"><?php the_title(); ?></h1></div> <div class="post-content"> <?php the_content('<p class="serif">Read the rest of this page ?</p>'); ?> <div> <?php the_block('blockname'); ?> </div> </div> </div> <?php endwhile; endif; ?> <?php get_footer(); ?>
- The topic ‘[plugin: multiple content blocks] editor doesn't work’ is closed to new replies.