Featured Listings

This topic contains 4 replies, has 2 voices, and was last updated by  joel phillips 6 years, 4 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #411348

    joel phillips
    Expired Member
    Post count: 82

    I want to charge for “Featured Listing” ads on the home page and create a slider or section to display those listings. Not sure the best path to accomplish this. Seems like users can set their own listings as “Featured” so how do I limit that?

    On another platform I just created a protected category of “Featured” and then I could rotate through those listings on the front page. Is there a similar mechanism on wpgd? I could not find any documentation on accomplishing this.

    Thanks,
    Joel

    #411354

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    “Featured” is an option in pricing packages; it is usually used as an incentive to encourage your customers to purchase a higher priced package.

    For sorting, see, for example for the places CPT: GD > Place Settings > Sorting Options > Featured

    There is a widget for the slideshow:
    https://wpgeodirectory.com/docs/widgets/

    Please let us know how that works for you

    Related Links
    https://wpgeodirectory.com/support/topic/featured-then-rating-sort-order/#post-411314

    #414081

    joel phillips
    Expired Member
    Post count: 82
    This reply has been marked as private.
    #414095

    Alex Rollin
    Moderator
    Post count: 27815

    Hi Joel,

    If you want one SUPER FEATURED package to be shown ABOVE another FEATURED package, you could add a special field to the higher package called “SUPER FEATURED”, set it to be default “on/true/yes” and set that in the sort.

    You would have to use a single listing widget, though, couldn’t use two in that case, because it isn’t possible to set a widget or shortcode to filter based on a custom field.

    If you wanteed to use two widgets, you can use tags to filter, but this is a more complicated useage and requires some manual intervention on the listing.

    1. Turn on shortcodes for widgets

    add_filter('widget_text', 'do_shortcode');

    2. Optional: hide tags from add listing form
    3. When user registers SUPER FEATURED package, set a tag “SUPER FEATURED”
    4. Add text widget with shortcode

    [gd_listings post_type="gd_place" layout=4 tags="SUPER FEATURED"]

    4A. Note that the filter for tags actually uses the nae/title, not the slug.
    See https://wpgeodirectory.com/docs/core-shortcodes/#listings

    Let us know how you go about it

    #414638

    joel phillips
    Expired Member
    Post count: 82
    This reply has been marked as private.
Viewing 5 posts - 1 through 5 (of 5 total)

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

Open Support Ticket