Ready to get started?Download WordPress


  1. Shihab Malayil
    Posted 2 years ago #

    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.]

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 2 years ago by Shihab Malayil
  • This topic is not resolved
  • WordPress version: 3.4.2