Title: Where to put code
Last modified: August 22, 2016

---

# Where to put code

 *  [Kevinn02](https://wordpress.org/support/users/kevinn02/)
 * (@kevinn02)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/where-to-put-code-2/)
 * Hi
 * This plugin seems to be what I want on my page.
 * Where to put this code: <?php the_block(‘trigger’); ?>
    Tried different ways,
   but no one works. What should happen when I put this code correctly?
 * What I want is an extra simple text content block under my main content block.
   
   See here: [http://nl.tinypic.com/view.php?pic=143q8gj&s=8](http://nl.tinypic.com/view.php?pic=143q8gj&s=8)
   So what I want is the ”TEXT AREA” block.
 * The rest of the page is already done, so this is the last thing to be done..
 * [https://wordpress.org/plugins/multiple-content-blocks/](https://wordpress.org/plugins/multiple-content-blocks/)

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

 *  Plugin Author [Harold Angenent](https://wordpress.org/support/users/harold-angenent/)
 * (@harold-angenent)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/where-to-put-code-2/#post-5407998)
 * Hi Kevin,
 * You should put the code directly below `the_content();` then. Did you put it 
   in the loop?
 *  Thread Starter [Kevinn02](https://wordpress.org/support/users/kevinn02/)
 * (@kevinn02)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/where-to-put-code-2/#post-5408008)
 * Where to find the loop? Don’t understand sorry.
 *  Plugin Author [Harold Angenent](https://wordpress.org/support/users/harold-angenent/)
 * (@harold-angenent)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/where-to-put-code-2/#post-5408015)
 * I was talking about the WordPress loop: [http://codex.wordpress.org/The_Loop](http://codex.wordpress.org/The_Loop)
 *  Thread Starter [Kevinn02](https://wordpress.org/support/users/kevinn02/)
 * (@kevinn02)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/where-to-put-code-2/#post-5408030)
 * I think so, this is how it looks like:
 * <?php /* Start the Loop */ ?>
    ** <?php the_block(‘trigger’); ?> ** <?php while(
   have_posts() ) : the_post(); ?>
 *  <?php
    /* Include the Post-Format-specific template for the content. * If you
   want to override this in a child theme, then include a file * called content-
   ___.php (where ___ is the Post Format name) and that will be used instead. */
   get_template_part( ‘content’, get_post_format() ); ?>
 *  <?php endwhile; ?>
 *  <?php generate_content_nav( ‘nav-below’ ); ?>
 *  <?php else : ?>
 *  <?php get_template_part( ‘no-results’, ‘index’ ); ?>
 *  <?php endif; ?>
    <?php do_action(‘generate_after_main_content’); ?> </main><!–#
   main –> </div><!– #primary –>
 * <?php
    do_action(‘generate_sidebars’); get_footer();
 *  Thread Starter [Kevinn02](https://wordpress.org/support/users/kevinn02/)
 * (@kevinn02)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/where-to-put-code-2/#post-5408031)
 *     ```
       <?php /* Start the Loop */ ?>
                               <?php the_block('trigger'); ?>
       			<?php while ( have_posts() ) : the_post(); ?>
   
       				<?php
       					/* Include the Post-Format-specific template for the content.
       					 * If you want to override this in a child theme, then include a file
       					 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
       					 */
       					get_template_part( 'content', get_post_format() );
       				?>
   
       			<?php endwhile; ?>
   
       			<?php generate_content_nav( 'nav-below' ); ?>
   
       		<?php else : ?>
   
       			<?php get_template_part( 'no-results', 'index' ); ?>
   
       		<?php endif; ?>
       		<?php do_action('generate_after_main_content'); ?>
       		</main><!-- #main -->
       	</div><!-- #primary -->
   
       <?php
       do_action('generate_sidebars');
       get_footer();
       ```
   
 *  Plugin Author [Harold Angenent](https://wordpress.org/support/users/harold-angenent/)
 * (@harold-angenent)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/where-to-put-code-2/#post-5408035)
 * Could you try it right below this part?
 *     ```
       get_template_part( 'content', get_post_format() );
       ```
   
 *  Thread Starter [Kevinn02](https://wordpress.org/support/users/kevinn02/)
 * (@kevinn02)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/where-to-put-code-2/#post-5408037)
 * No result..
    It looks like this now:
 *     ```
       <?php /* Start the Loop */ ?>
       			<?php while ( have_posts() ) : the_post(); ?>
   
       				<?php
       					/* Include the Post-Format-specific template for the content.
       					 * If you want to override this in a child theme, then include a file
       					 * called content-___.php (where ___ is the Post Format name) and that will be used instead.
       					 */
       					get_template_part( 'content', get_post_format() );
                                               <?php the_block('trigger'); ?>
       				?>
       ```
   
 * No extra page edit options..
 *  Plugin Author [Harold Angenent](https://wordpress.org/support/users/harold-angenent/)
 * (@harold-angenent)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/where-to-put-code-2/#post-5408038)
 * You don’t have to open PHP when it’s opened.. 😉 I would like to help you, but
   this seems more like a PHP problem than a problem with our plugin. Our plugin
   is actually more meant for developers.
 * So in this case: remove `<?php` and `?>` around `the_block( 'trigger' )`.
 *  Thread Starter [Kevinn02](https://wordpress.org/support/users/kevinn02/)
 * (@kevinn02)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/where-to-put-code-2/#post-5408042)
 * I replaced the tag. What should happen now?
 *  Plugin Author [Harold Angenent](https://wordpress.org/support/users/harold-angenent/)
 * (@harold-angenent)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/where-to-put-code-2/#post-5408043)
 * You should see an editor in the admin panel.
 *  Thread Starter [Kevinn02](https://wordpress.org/support/users/kevinn02/)
 * (@kevinn02)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/where-to-put-code-2/#post-5408045)
 * There is not an editor in the admin panel..
    You know the reason?
 *  Plugin Author [Harold Angenent](https://wordpress.org/support/users/harold-angenent/)
 * (@harold-angenent)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/where-to-put-code-2/#post-5408046)
 * No, but it’s a bit hard to help you debug it like this.
 *  Thread Starter [Kevinn02](https://wordpress.org/support/users/kevinn02/)
 * (@kevinn02)
 * [11 years, 7 months ago](https://wordpress.org/support/topic/where-to-put-code-2/#post-5408142)
 * Remove the code?

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

The topic ‘Where to put code’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/multiple-content-blocks.svg)
 * [Multiple content blocks](https://wordpress.org/plugins/multiple-content-blocks/)
 * [Support Threads](https://wordpress.org/support/plugin/multiple-content-blocks/)
 * [Active Topics](https://wordpress.org/support/plugin/multiple-content-blocks/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/multiple-content-blocks/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/multiple-content-blocks/reviews/)

 * 13 replies
 * 2 participants
 * Last reply from: [Kevinn02](https://wordpress.org/support/users/kevinn02/)
 * Last activity: [11 years, 7 months ago](https://wordpress.org/support/topic/where-to-put-code-2/#post-5408142)
 * Status: not resolved