WordPress.org

Ready to get started?Download WordPress

Forums

  1. shihabmalayil
    Member
    Posted 1 year ago #

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

    the codes are like...
    (template)

    <?php /*?>
    
    <?php if(have_posts()):
    while(have_posts()): the_post(); ?>
    <h1><?php the_title();?></h1>
    <p><?php the_content();?></p>
    <?php endwhile;
     else :
    endif;?>
    
    <?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 */?>

    pls....

    [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

Tags