Wordpress Custom Fields

Out of context: Reply #6

  • Started
  • Last post
  • 8 Responses
  • Centigrade0

    Are you coding this with PHP? Or just using a sersies of plugins to help you?

    It's easy to increase the number of posts shown if you are writing page templates with php.

    Use a loop like so:

    <?php
    $args = array(
    'post_type' => 'YOUR POST TYPE HERE',
    'posts_per_page' => 1000,
    );
    $loop = new WP_Query( $args );
    while ( $loop->have_posts() ) : $loop->the_post();?>

    DO YOUR LAYOUT TUFF FOR EACH POST

    <?php endwhile; ?>

    ---

    The key part is the posts per page... you can change that number to whatever you want.

    • posts_per_page => -1 for unlimited posts to displaynocomply
    • Thank you! I think this is what I'm aiming to figure out.mg33
    • Just be careful if you're doing a huge query for tons of posts. Could get really slow.nocomply

View thread