annac (January 7th, 2014), jaesjm (January 2nd, 2014), malkie (January 2nd, 2014), ogoor (January 5th, 2014), paulogoode (January 8th, 2014), sgamresh (January 2nd, 2014), wschaefer1 (January 7th, 2014), zpaiss (January 7th, 2014)
class VA_Listing_Archive extends APP_View {
function condition() {
return is_post_type_archive( VA_LISTING_PTYPE ) && !is_tax() && !is_admin();
}
function parse_query( $wp_query ) {
global $wpdb, $va_options;
$wp_query->set( 'posts_per_page', $va_options->listings_per_page );
class VA_Listing_Archive extends APP_View {
function condition() {
return is_post_type_archive( VA_LISTING_PTYPE ) && !is_tax() && !is_admin();
}
function parse_query( $wp_query ) {
global $wpdb, $va_options;
$wp_query->set( 'post_type', VA_LISTING_PTYPE ); // <--- add this line
$wp_query->set( 'posts_per_page', $va_options->listings_per_page );
annac (January 7th, 2014), jaesjm (January 2nd, 2014), malkie (January 2nd, 2014), ogoor (January 5th, 2014), paulogoode (January 8th, 2014), sgamresh (January 2nd, 2014), wschaefer1 (January 7th, 2014), zpaiss (January 7th, 2014)
malkie (January 2nd, 2014), wschaefer1 (January 7th, 2014), zpaiss (January 7th, 2014)
There are currently 1 users browsing this thread. (0 members and 1 guests)