Support » Fixing WordPress » Posts in all pages help

  • Resolved 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)
Viewing 1 replies (of 1 total)
  • The topic ‘Posts in all pages help’ is closed to new replies.