I have edited the only.perl to match me and delay pills work. I only left in negligence the loop in by which is the following:

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
        <div class="entry">
        <?php the_content('<p class="serif">Read the rest of this entry &raquo;</p>'); ?>
        <?php wp_link_pages(array('before' => '<p><strong>Pages:</strong> ', 'after' => '</p>', 'next_or_number' => 'number')); ?>     </div>
    </div>
<?php endwhile; else: ?>

    <p>Sorry, no posts matched your criteria.</p>

<?php endif; ?>

It only displayes the written text, like I would like it to. The issue I recieve happens when I add the next code for use because the sidebar within the template

<?php query_posts('showposts=10'); ?>
 <?php while (have_posts()) : the_post(); ?> 
<a href="<?php the_permalink() ?>" rel="bookmark" title="Link to <?php the_title(); ?>">
<?php the_title(); ?></a><br /> 
<?php endwhile;?> 

It will display the title from the last 10 posts. However the loop is also exhibiting the most recent (full0 10 posts rather than only the one publish that goes towards the permalink... I believe a flexible approximately has been used again and must be relaxation.. Observe that within the single.php firstly you obtain the 'sidebar' code, and you obtain the 'loop' code.

Why is wordpress acting by doing this?

$recentPosts->query('showposts=10')

while ($recentPosts->have_posts()) :

$recentPosts->the_publish() ?>

"

rel="bookmark" title="Connect to ">

reading through the code u investing in the sidebar, u are attempting to obtain the last 10 game titles of posts show in sidebar , right ? if that's the case u can only use this line :

`<?php wp_get_archives('title_li=&type=postbypost&limit=10'); ?>

The main reason this occurs happens because Wordpress is really a nightmarish maze of worldwide variables. query_posts() is among the worst culprits. Should you look into the documentation for this specific purpose, you'll notice that they even need to warn you to definitely essentially not utilize it:

Important note

The query_posts function is supposed for use to change the primary page Loop only. It's not intended like a way to create secondary Loops around the page. If you wish to create separate Loops outdoors from the primary one, you should create separate Wordpress_Query objects and employ individuals rather. Utilization of query_posts on Loops apart from the primary one can lead to your primary Loop becoming incorrect and perhaps exhibiting stuff that you weren't expecting.

They have added some object oriented stuff which you can use now rather, namely the WP_Query object (why they haven't refurbished the "primary" pages to eliminate the absurd "The Loop" stuff yet is questionable).

You are likely to wish to accomplish something similar to this within the sidebar:

<?php
$recentPosts = new WP_Query();
$recentPosts->query('showposts=10');
while ($recentPosts->have_posts()) : $recentPosts->the_post(); ?>

<a href="<?php the_permalink() ?>" rel="bookmark"
    title="Link to <?php the_title(); ?>">
<?php the_title(); ?></a><br /> 
<?php endwhile;?> 

Google around concerning how to use Wordpress_Query if you would like more examples.