How do I override Pagination
I am trying to display all my listings on a single page; just Business name without styling.
I only have approx 100 listings so massive page not an issue, so was wondering, how do I bypass the pagination?
Code is a stripped down version from va_home.php
Any ideas?
Many thanks.
Shane
**************************
My code.
<?php
// Template Name: Simple Listing
?>
<div class="list">
<div class="section-head">
<?php if ( is_tax( VA_LISTING_CATEGORY ) || is_tax( VA_LISTING_TAG ) ) { ?>
<h1><?php printf( __( 'Business Listings - %s', APP_TD ), single_term_title( '', false )); ?></h1>
<?php } else { ?>
<h1><?php _e( 'Business Listings', APP_TD ); ?></h1>
<?php } ?>
</div>
<div class="sorting">
<div class="list-sort-dropdown"><?php echo va_list_sort_dropdown( VA_LISTING_PTYPE, va_listings_base_url(), $va_options->default_listing_home_sort ); ?></div>
</div>
<?php
$listings = va_get_home_listings();
if ( $listings->post_count > 0 ) :
?>
<?php while ( $listings->have_posts() ) : $listings->the_post(); ?>
<article class="simplelisting">
<p itemprop="name"><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></p>
</article>
<?php endwhile; ?>
<?php else : ?>
<article class="listing">
<h2><?php __( 'Sorry there are no listings yet', APP_TD ); ?></h2>
</article>
<?php endif; ?>
<?php wp_reset_query(); ?>
<div class="advert">
<?php dynamic_sidebar( 'va-listings-ad' ); ?>
</div>
</div>
<div id="sidebar">
<?php get_sidebar( app_template_base() ); ?>
</div>