Viewing 3 replies - 1 through 3 (of 3 total)
  • Can you clarify more on what you by recent pages

    Thread Starter Turismo in

    (@turismo-in)

    Thank you for your reply. I use this code for get my recent posts:

    <ul>
    
    <?php query_posts("showposts=5"); $i = 1; ?>
    
    <?php while (have_posts()) : the_post(); ?>
    
    <li><div class="post">
    <?php
                		$img_missing = false;
    					if (woo_image('return=true&key=image')) { ?>
                		<div class="image-holder <?php echo $GLOBALS['thumb_align']; ?>" style="width:<?php echo $GLOBALS['thumb_w']; ?>px">
                			<?php woo_get_image('image',$GLOBALS['thumb_w'],$GLOBALS['thumb_h'],'thumbnail '.$GLOBALS['thumb_align']); ?>
                			<div class="fix"></div>
    						<?php if(function_exists('the_ratings')) { echo '<div class="ratings fl">'; the_ratings(); echo '</div>'; } ?>
                			<p class="fr"><span class="post-category"><?php the_category(' ') ?></span></p>
                		</div>
                         <?php } else { $img_missing = true; } ?>
    <h3><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
    <?php the_excerpt(); ?>
    </div></li>
    
    <?php endwhile; ?>
    
    </ul>

    And i show all my latest post! I use my pages in wordpress for add “partner” and now i want get latest pages…

    Thread Starter Turismo in

    (@turismo-in)

    I have tried
    <?php while ( have_pages() ) : the_page ()?>
    but return Fatal error: Call to undefined function have_pages()

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘How to get recent pages’ is closed to new replies.