Skip to content

Instantly share code, notes, and snippets.



Created Feb 6, 2014
What would you like to do?
Perch Bug — When using the perch_content_create() function to create a region and then the perch_content() method to retrieve it, two regions get created — a shared one and one for the page.
require 'admin/runtime.php';
perch_content_create('Example Shared Region', array(
'template' => 'text_block.html',
'shared' => true,
<html lang="en">
<title>Perch Website</title>
<?php require 'header.php'; ?>
<p>Hello, World!</p>
<?php require 'footer.php'; ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment