Page 1 of 2 12 LastLast
Results 1 to 10 of 15
Like Tree5Likes

Thread: BUG - FIX for Vantage1.3 missing listings when selecting Category

  1. #1
    Thread Starter
    Veteran joes's Avatar
    Join Date
    Nov 2012
    Location
    Australia
    Posts
    877
    Thanks
    12
    Thanked 358 Times in 261 Posts

    BUG - FIX for Vantage1.3 missing listings when selecting Category

    All,

    Here is an unofficial fix to Vantage1.3 for the "Missing listings when selecting a Category".

    In the file "\vantage\includes\views.php" find the following section:

    PHP Code:
    class VA_Listing_Archive extends APP_View {

        function 
    condition() {
            return 
    is_post_type_archiveVA_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 ); 
    and then add 1 line of code to it as follows:


    PHP Code:
    class VA_Listing_Archive extends APP_View {

        function 
    condition() {
            return 
    is_post_type_archiveVA_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 ); 
    zpaiss likes this.

  2. The Following 8 Users Say Thank You to joes For This Useful Post:

    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)

  3. #2
    malkie's Avatar
    Join Date
    Nov 2013
    Location
    United Kingdom
    Posts
    442
    Thanks
    39
    Thanked 62 Times in 60 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #3
    Thread Starter
    Veteran joes's Avatar
    Join Date
    Nov 2012
    Location
    Australia
    Posts
    877
    Thanks
    12
    Thanked 358 Times in 261 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    malkie, socksrule and zpaiss like this.

  5. The Following 3 Users Say Thank You to joes For This Useful Post:

    malkie (January 2nd, 2014), wschaefer1 (January 7th, 2014), zpaiss (January 7th, 2014)

  6. #4
    malkie's Avatar
    Join Date
    Nov 2013
    Location
    United Kingdom
    Posts
    442
    Thanks
    39
    Thanked 62 Times in 60 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  7. #5
    socksrule's Avatar
    Join Date
    Dec 2013
    Location
    United States
    Posts
    72
    Thanks
    1
    Thanked 5 Times in 5 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  8. #6
    Expired Customer sgamresh's Avatar
    Join Date
    Nov 2013
    Location
    Bangalore, India
    Posts
    41
    Thanks
    13
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  9. #7
    dimitris's Avatar
    Join Date
    Oct 2011
    Location
    Earth
    Posts
    20,618
    Thanks
    222
    Thanked 1,873 Times in 1,770 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  10. #8
    bradleyhebdon's Avatar
    Join Date
    Jul 2013
    Location
    United States
    Posts
    181
    Thanks
    21
    Thanked 10 Times in 8 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  11. #9
    socksrule's Avatar
    Join Date
    Dec 2013
    Location
    United States
    Posts
    72
    Thanks
    1
    Thanked 5 Times in 5 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    dimitris likes this.

  12. #10
    Expired Customer kcjt2009's Avatar
    Join Date
    Dec 2013
    Location
    United States
    Posts
    276
    Thanks
    32
    Thanked 24 Times in 20 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Page 1 of 2 12 LastLast

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Price not displaying after selecting category
    By manishkhullar in forum ClassiPress General Discussion
    Replies: 1
    Last Post: September 2nd, 2013, 05:34 AM
  2. [SOLVED] Category Listings Missing
    By rossmcd in forum Report Vantage Bugs (Legacy)
    Replies: 12
    Last Post: June 6th, 2013, 01:46 PM
  3. Samcy button after selecting the category
    By gravedigger in forum Help Using ClassiPress
    Replies: 9
    Last Post: May 31st, 2013, 12:04 PM
  4. [SOLVED] When Posting Ad Nothing Is Happening After Selecting Category
    By nepaclick in forum Report ClassiPress Bugs
    Replies: 2
    Last Post: August 10th, 2011, 09:09 AM
  5. [SOLVED] Error - Posting an Ad and Selecting a Category
    By lucabrasi in forum Report ClassiPress Bugs
    Replies: 4
    Last Post: February 2nd, 2011, 04:23 PM