Only first 10 items of my CPT can display?
-
Hello guys,
I’m stuck with my sister’s website. I’m using CPT UI to displays projects thumbails for her portfolio. It was all going swimmingly till I added the 11th item. It doesn’t display, not trace of any element I added after the 10th?
What can be the issue? I must confess Im php/wp newb, I can read it a bit but i don’t see anything wrong with the loop query. This is confusing to me.
If anyone has a clue, it would be much appreciated!
cheersHere is my code :
<?php $loop = new WP_Query( array('post_type' => 'project_thumbnails', 'orderby' => 'post-id', 'order' => 'ASC')); ?> <?php while( $loop->have_posts() ) : $loop->the_post(); ?> <?php $image = get_field('project_image'); $url = $image['url']; $alt = $image['alt']; ?> <a href="<?php the_field('project_url'); ?>"> <div class="project <?php the_field('project_category'); ?>"> <div class="project-info"> <h1><?php the_field('project_title'); ?></h1> <h2><?php the_field('project_subtitle'); ?></h2> </div> <img src="<?php echo $url; ?>" alt="<?php echo $alt; ?>" > </div> </a> <?php endwhile; ?>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Only first 10 items of my CPT can display?’ is closed to new replies.