WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Sidebar Issue in Pages Only (1 post)

  1. bcreighton
    Member
    Posted 6 years ago #

    Hi,

    I've included the sidebar on a Page template, however my sidebar content is not behaving the same way as a Post template.

    On the sidebar I have query_posts run to pull in a little content, with a more link, like so:

    <?php query_posts('cat=6&showposts=1 ');	?>
            <?php if (have_posts()) : ?>
            <?php while (have_posts()) : the_post(); ?>
                    <h4><?php the_title(); ?></h4>
              <?php the_content('Read more &raquo;');?>

    However, the more link is not working on the Page template. It instead pulls in all of the text and places <span id="more-30"></span> where the more link should be.

    Posts, however, everything works perfectly.

    Any thoughts? Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.