Multiple content blocks
authorLaury GvR <laury@gaslightmedia.com>
Fri, 15 May 2015 17:05:09 +0000 (13:05 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 15 May 2015 17:05:09 +0000 (13:05 -0400)
page.php
parts/right-sidebar.php [new file with mode: 0644]

index 6e5925d..f049b1a 100644 (file)
--- a/page.php
+++ b/page.php
                                 </div>
                             </footer>
                         </div>
-                        <?php if (is_page('Courts & Sheriff')) { ?>
-                        <div id="extra" class="large-3 columns show-for-large-up">
-                            <?php get_sidebar(); ?>
-                        </div>
-                        <?php } ?>
+                        <?php if (is_page('Courts & Sheriff')) {
+                            get_template_part('parts/right-sidebar');
+                        } ?>
                     </div>
 <?php get_footer(); ?>
diff --git a/parts/right-sidebar.php b/parts/right-sidebar.php
new file mode 100644 (file)
index 0000000..f7d2497
--- /dev/null
@@ -0,0 +1,9 @@
+<div id="extra" class="large-3 columns show-for-large-up">
+<?php 
+echo get_the_block( $name, array(
+    'label'         => __( 'Admin label', 'text-domain' ),
+    'type'          => 'editor',
+    'apply_filters' => true,
+) );
+?>
+</div>
\ No newline at end of file