Keep on getting display of post twice on page
-
With the following code, I am getting twice the display of the post content
<div id="main">[insert_php] query_posts('catname=hike-report&tag=hikereport&showposts=1'); while (have_posts()) : the_post(); the_content(); endwhile; [/insert_php]</div>
When I look at my result via chrome inspect element, I am surprise to see the following two entries:
class=”post-384 page type-page status-publish hentry”
and
class=”post-405 post type-post status-publish format-standard hentry category-home-page tag-hikereport”
Back at the site, I see only one post and no post exist on the trash. What am I doing wrong? If I go to the post navigation (on another page with the side post navigation), I see only one Recent Posts and if I click on the Archives (only August link is there) and clicking on it, I see that same one post.
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Keep on getting display of post twice on page’ is closed to new replies.