I have built a site that uses the "posts" type to display their galleries as normal posts. It is set to be sorted by custa meta date and continue on down the page.
As of right now, I have made 15 posts, but for some reason my page is only showing 11. Maybe you can help me out, as I have kind of been thrust into a "wordpress" developer role, and am learning as i go along.
site in question: http://lurehollywood.com/gallery
here is the loop:
<?php $gallery = new WP_Query(
array(
'post_type' => 'post',
'posts_per_page' => -1,
'order' => 'DESC',
'orderby' => 'meta_value',
'meta_key' => 'datetime'
)
); ?>
<?php while ($gallery->have_posts()) : $gallery -> the_post(); ?>
datetimemeta key? inspect the query to see if the query vars are being set as you expect, addprint_r($gallery);after the query. – Milo Feb 2 at 0:25