• Resolved tgirl

    (@tgirl)


    I’ve successfully managed to get the thumbnails to load into my own homepage template. But I’m wondering how I can limit the number of images it displays.

    I’ve narrowed down where it should change.

    <?php if (is_page()) { $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts('post_type=otw-portfolio&paged='.$paged); } ?>
    <?php if (have_posts()): while (have_posts()) : the_post(); ?>
    <li data-type="<?php foreach(get_the_terms($post->ID, 'otw-portfolio-category') as $term) echo $term->slug.' ' ?>" data-id="id-<?php echo($post->post_name) ?>">

    But I’m not strong in PHP and can’t figure it out. Trial and error hasn’t worked for me so far.

    Any help would be much appreciated!

    Great plugin by the way! Thank you.

    https://www.ads-software.com/plugins/otw-portfolio-light/

Viewing 1 replies (of 1 total)
  • Thread Starter tgirl

    (@tgirl)

    Aww, nevermind. I Just figured it out.
    I added
    &showposts=3 into
    post_type=otw-portfolio&paged=

    <?php if (is_page()) { $paged = (get_query_var('paged')) ? get_query_var('paged') : 1; query_posts('post_type=otw-portfolio&showposts=3&paged='.$paged); } ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Limit # of Thumbnails Loaded’ is closed to new replies.