Filter gd_listings shortcode by pricing package

This topic contains 3 replies, has 3 voices, and was last updated by  Stiofan O’Connor 7 years, 10 months ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #380273

    offshorly
    Expired Member
    Post count: 23

    Hi, we’re planning to have 3 price packages initially for listings (say premium, basic, and free) our client wants to display listings in both the country and city pages according to these price packages in the following order:

    12 listings in a 3×4 grid
    First row: premium listings
    Second row: basic listings
    The rest: free listings sorted by latest first
    Preferably insert an add banner between second row and the last 2 rows

    I’ve played around with the core listing shortcodes and the best approach I’ve found so far is to use tags to duplicate the price packages for listings and output using three instances of gd_listings shortcode (limiting the layout and post number to 3 for the first two and filtering by their respective tags, inserting a banner add after, then displaying the last 2 rows filtered by tag for free listings). Works as a solution but far from ideal as this requires duplicating the price package in the form of tags for each listing. Is there a way to show listings by their price package instead?

    Using latest WP, GD core, and GD Payment Manager. Thanks in advance.

    #380275

    offshorly
    Expired Member
    Post count: 23

    Hi,

    Forum seem to have deleted my previous post when I attempted to edit. Anyway, we’re planning to implement 3 price packages initially for listings (say, premium, basic, and free). Our client wants to display the listings in the country and city pages using a 3×4 grid in the following order:

    1st row: Premium listings
    2nd row: Basic listings
    Preferably insert a banner add between 2nd and 3rd rows
    3rd and 4th rows: Free listings

    I’ve search the forum and played around with the core shortcodes and so far the best approach I could find is to use tags for each pricing package and display the listings using 3 instances of the gd_listings sc. Limiting the layout and post_number of the first 2 rows to 3 and filtering by their respective tags, inserting an ad banner below the 2nd row, then displaying the rest using a third instance of the shortcode. Works but less than ideal since we have to ask the client to duplicate the pricing package using tags for each listing. Is there a way to filter output of the gd_listings shortcode by price package instead?

    Using latest WP, GD core and payment manager add-on. Thanks in advance.

    #380280

    Guust
    Moderator
    Post count: 29970

    I’ll get a developer to look at this after the weekend.
    Thanks

    #380297

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    You can filter the where clause but the problem is it filters it for all, you would have to do some further checks for the page and then further checks for what X number of times it has been called to filter in different ways. In short there is no easy way to do it. You can filter by Featured listings which you could assign to the top price package though?

    Stiofan

Viewing 4 posts - 1 through 4 (of 4 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
20% Discount Offer
Hurry! Get your 20% discount before it expires. Get 20% Discount