Results 1 to 1 of 1

Thread: How do I override Pagination

  1. #1
    Thread Starter
    shaneoriordan's Avatar
    Join Date
    Mar 2014
    Location
    Ireland
    Posts
    53
    Thanks
    6
    Thanked 1 Time in 1 Post

    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>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Override Paypal.php file
    By figureslibres in forum ClassiPress General Discussion
    Replies: 0
    Last Post: August 12th, 2013, 08:28 AM
  2. Best way to override jr_* functions
    By jemcapon in forum Report JobRoller Bugs
    Replies: 1
    Last Post: July 23rd, 2012, 07:55 AM
  3. child themes css override
    By binh in forum Report ClassiPress Bugs
    Replies: 3
    Last Post: May 22nd, 2012, 05:31 AM
  4. Still trying to override TEMPLATEPATH with STYLESHEETPATH
    By mcasdorph in forum Report ClassiPress Bugs
    Replies: 12
    Last Post: May 17th, 2012, 09:50 PM