No Menu on pages with page and post content
-
Hi Everyone,
First off, thanks for the great plugin. I’m using it for 2 years or more already and didn’t have any issue with it until now.
I’m using the menu as a sidebar menu to show the page and its children / parents.
Lately I’ve been a bit more adventurous with wordpress and created a Custom Post type.
On a several pages I am using now the page-templated I created instead of the standard page.php template from my theme.
This template combines static and dynamic content, at first the static page content is displayed and then it adds a number of posts (by category depending on the page).Since I changed this and there is the dynamic content added the advanced-sidebar-menu is not visible anymore.
Advanced sidebar menu version: 2.1.
(I tried to update now, but then the menu is completely gone on all pages)I can post any additional code that you would think could help. Just for now I did not want to randomly post everything, as I’m not sure where the issue is.
When the page-template just had this loop it worked:
<?php // TO SHOW THE PAGE CONTENTS while ( have_posts() ) : the_post(); ?> <div class="entry-content-page"> <br /> <?php the_content(); ?><!-- Page Content --> </div><!-- .entry-content-page -->
Now when this gets added the menu disappears:
<?php endwhile; //resetting the page loop wp_reset_query(); //resetting the page query ?> <?php query_posts( 'post_type=reise'.'&category_name='.get_the_title().''); ?> <?php if (have_posts()){ ?> <?php while (have_posts()){ the_post(); ?> <div class="entry page"> <br /> . . .
Thanks in advance for any help (:
- The topic ‘No Menu on pages with page and post content’ is closed to new replies.