Issue with Flexi Pages function
-
Hi All,
I’m using the ashford framework to build out this site.http://70.85.145.131/~rouhleyi/wordpress/
I want to use the flexipages widget to incorporate a custom sub menu for all my main page catagories. The only problem is I can’t quite figure how with this framework where to put the flexi pages function into the template. Here is an example of the template code and what should I replace in the sidebar code to make this happen without messing the framework up.
global $wp_query; $thePostID = $wp_query->post->ID; $sidebar = get_post_meta($thePostID, 'page_sidebar_value', true); if (empty($sidebar)){ $sidebar='sidebar_left'; } else { $sidebar='sidebar_custom_'.$sidebar; } ?> <?php get_header(); ?> <?php if(IS_MOBI=='false') :?> <div id="sidebar" class="<?php echo ASHFORD_SIDEBAR_LEFT_GRID ?> <?php echo $sidebar ?> region"><div id="sidebar_inner"> <?php if ( function_exists('dynamic_sidebar')) { if (is_sidebar_active($sidebar)) { echo '<div id="'.$sidebar.'">'; dynamic_sidebar($sidebar); echo '</div>'; } else { ashford_hint('div',$sidebar,'Activate the '.$sidebar.' by adding a widget.'); } } ?> </div><!-- /#sidebar_inner --> <?php ashford_outline_region(get_bloginfo('url').'/wp-admin/widgets.php','Sidebar(s)','Activate this region by adding widgets to the sidebars.'); ?> </div><!-- /#sidebar --> <?php endif; ?> <div id="content" class="<?php echo ASHFORD_CONTENT_LEFT_GRID ?>"> <?php if (have_posts()) : while (have_posts()) : the_post(); ?> <?php include (TEMPLATEPATH . '/post_page.php'); ?> <?php endwhile; endif; ?> </div><!-- /#content --> <?php get_footer(); ?>Thanks in advance
The topic ‘Issue with Flexi Pages function’ is closed to new replies.