Posted By

Daidaros on 02/12/09


Tagged

wordpress loop posts


Versions (?)

Da Loop


 / Published in: PHP
 

URL: http://codex.wordpress.org/The_Loop

Para llamar posts de diferentes maneras.

  1. <?php //daLOOP :OOOOOOOOOOOO
  2. $misposteos = get_posts('offset=0');
  3. foreach ($misposteos as $post) :
  4. setup_postdata($post); //:O ESTO ES LO QUE HACE EL TRUCO!!!!!
  5. ?>
  6. <li><a href="<?php the_permalink(); ?>">
  7. <?php echo c2c_get_custom('myposticons_filename', '<img src="', '" alt="Imagen">');?>
  8. <?php the_title() ?></a> ---
  9. <?php the_excerpt() ?></li>
  10. <?php endforeach; ?>

Report this snippet  

You need to login to post a comment.