Revision: 42397
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at March 4, 2011 07:49 by jonahcoyote
Initial Code
<?php global $wp_query; $current_page = $wp_query->post->ID; $where = "pages.id LIKE '". $current_page . "'"; $Record = new Pod('sidebars'); $Record->findRecords('weight ASC', -1, $where); ?> <ul class="xoxo"> <?php echo $Record->showTemplate('sidebars_list'); ?> </ul>
Initial URL
Initial Description
This code loads the sidebars pod, determines if the current page matches any of the selected pages for the sidebar record and loads the Pod template to use for each record.
Initial Title
Pods sidebars in WP Template
Initial Tags
Initial Language
PHP