HOW LIMIT DOCS

Home Forums WPAlchemy HOW LIMIT DOCS

Tagged: , ,

This topic contains 0 replies, has 1 voice, and was last updated by  romanmmx 1 year ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #2645

    romanmmx
    Participant

    <?php query_posts(‘post_type=info&fraccion=theme&orderby=rand&order=ASC&posts_per_page=1′);
    while(have_posts()):the_post(); ?>
    <?php $my_meta=get_post_meta($post->ID,’_custom_meta’,TRUE); ?>
    <?php foreach($my_meta['docs'] as $doc){ ?>
    <li><span><?php echo $doc['titulo']; ?></span></li>
    <?php } ?>
    <?php endwhile; ?>

    HOW LIMIT THE DOCS Because i want show 3 docsĀ  but thisĀ  show all docs i want limit

    • This topic was modified 1 year ago by  romanmmx.
Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.