Support » Fixing WordPress » post page repeating content twice

  • Shihab Malayil


    post page repeating content twice.anyone help me to correct php code.

    the codes are like…

    <?php /*?>
    <?php if(have_posts()):
    while(have_posts()): the_post(); ?>
    <h1><?php the_title();?></h1>
    <p><?php the_content();?></p>
    <?php endwhile;
     else :
    <?php */?>
    (WP Page)
    <?php */?>
    <?php query_posts('cat=4&showposts=8'); ?>
    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <a>"><?php the_title()?></a>
    <?php the_excerpt();?>
    <?php endwhile; endif; ?>
    <?php */?>


    [Moderator Note: Please post code or markup snippets between backticks or use the code button. As it stands, your code may now have been permanently damaged/corrupted by the forum’s parser. And please stop posting the same question multiple times.]

  • The topic ‘post page repeating content twice’ is closed to new replies.