• hello folks
    this is my 1st topic in this forum, and i hope to find some questions, as i start to use wordpress, I start modding a theme, and to edit it as i want it to be, but i have a problem is the index.php , as I want to have pages instead of posts, so here is the code :

    <?php $count = 0;?>
    <?php query_posts('showposts=4'); ?>
    <?php if (have_posts()) : ?>
    <?php while (have_posts()) : the_post(); ?>
    
    <div class="postindex" id="post-<?php the_ID(); ?>">
    
    	<h2>
    		<a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title(); ?>"><?php the_title(); ?></a>
    	</h2>
    	<div class="entry">
    		<?php the_excerpt(__('Lire la Suite »'));?>
    	</div>
    	<div class="spacer"></div>
    	<ul class="post-data">
    		<li class="posted">
    			<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>"><img src="<?php bloginfo('template_url'); ?>/images/lire+1.gif" alt="Lire la suite" style="height:20px; width:62px;border:0px;float:right"></a>
    		</li>
    	</ul>
    </div>
    <?php endwhile; else: ?>
    	<p><?php _e('D&eacute;sol&eacute;, pas de postes correspondant &agrave; vos crit&egrave;res.'); ?></p>
    <?php endif; ?>

    hope someone could help me to fix that, and thanks

Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Page instead of Posts’ is closed to new replies.