shihabmalayil Posted October 24, 2012 Share Posted October 24, 2012 These are code of my wordpress template page & post page.it's repeating twice.is it looping same code?. please help me to correct the code. (template page) <?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 */?> Link to comment https://forums.phpfreaks.com/topic/269857-content-repeating-twice-why/ Share on other sites More sharing options...
White_Lily Posted October 24, 2012 Share Posted October 24, 2012 um... re-post that stuff in code tags please :| Link to comment https://forums.phpfreaks.com/topic/269857-content-repeating-twice-why/#findComment-1387445 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.