Pagination not working with custom loop

I’ve got a custom loop that I’m using to display some Real Estate listings that will be available within 60 days. I’m calling it with the following function: <?php $sixtydays = date(‘Y/m/d’, strtotime(‘+60 days’)); $paged = (get_query_var(‘paged’)) ? get_query_var(‘paged’) : 1; $query = new PostsOrderedByMetaQuery(array( ‘post_type’ => array(‘post’, ‘real-estate’), ‘meta_key’ => ‘Time Available’, ‘meta_compare’ => … Read more

Pagination when using wp_query?

<!– query –> <?php $paged = ( get_query_var( ‘paged’ ) ) ? get_query_var( ‘paged’ ) : 1; $query = new WP_Query( array( ‘category_name’ => ‘investor-news’, ‘posts_per_page’ => 2, ‘paged’ => $paged ) ); ?> <?php if ( $query->have_posts() ) : ?> <!– begin loop –> <?php while ( $query->have_posts() ) : $query->the_post(); ?> <h2><a href=”https://wordpress.stackexchange.com/questions/254199/<?php … Read more