• Resolved johnjf

    (@johnjf)


    Hello I’m having a problem with posts showing up in all my pages.
    I had this problem earlier and thought I fixed it but then noticed it wasn’t fixed after all. I figured out what’s doing the problem, my home page is working fine and showing the blog posts like I want it to but when I make a page with content it shows a blog post instead of the pages content.

    The problem is my banner area where I have an editable area with a welcome message and slider images beside it. When I remove this section the page content shows up. Here is the code

    <div id="banner">
            	<div id="welcome">
    	<? query_posts('category_name=editable'); ?>
    	<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    		<h1><?php the_title(); ?></h1>
    		<p><?php the_content( __('Read the rest of this page ?', 'template')); ?></p>
    	<?php endwhile; endif; ?>
    
                	</div><!----- End Of Welcome ----->
    
                <div id="slider">
    	<?php echo do_shortcode('[thethe-image-slider name="images"]'); ?>
                </div><!----- End Of Slider ----->
    
            </div><!------- End Of Banner -------->

    what is the problem and what may the fix be?

    Thank you

Viewing 1 replies (of 1 total)
  • Thread Starter johnjf

    (@johnjf)

    nvm, just realized I had multiple loops and needed

    wp_reset_query();

    to start my other loop

Viewing 1 replies (of 1 total)
  • The topic ‘Posts in all pages help’ is closed to new replies.