Forums

Showposts=1 shows 2 (1 post)

  1. WebWorksNow
    Member
    Posted 1 year ago #

    Hi, Can't seem to find an answer to this. I'm using the standard query to show one post on the home page of the parent site (not a WordPress site) and it's returning two posts instead of one.

    Here's the code -

    <?php query_posts('showposts=1'); ?>
              <?php while (have_posts()): the_post(); ?>
              <h2> <?php the_title(); ?></h2>
              <?php the_excerpt(); ?>
              <p><a>" target="_blank">Read more...</a></p>
              <?php endwhile; ?>

    The website is http://www.divinedzigns.com

    Any help would be appreciated.
    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic