Featured listings in GD V2

This topic contains 18 replies, has 4 voices, and was last updated by  jotomas 4 years, 7 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #500332

    jotomas
    Buyer
    Post count: 802

    Hello,

    I am reading the GD V2 documentation about Featured Listings https://wpgeodirectory.com/docs-v2/geodirectory/featured-listings/

    and I have some doubts.

    1) In GD V1 a red featured badge was showing over the top right corner of the featured image listing. This is no longer the case in GD V2, am I right?

    2) It is possible to change the text, icon and styling of the badge, am I right?

    3) Badge text can be translated with WMPL string translation, right?

    4) Badge can be placed anywhere in any GD page or template moving the shortcode to the desired position, right? Is this the case also for Supreme Directory theme GD Detail page? or for this theme the badge has a fixed position in the GD Detail page header?

    5) I read that multiple badges can be added. Will they show in line where the shortcode is placed? Is it possible to use several shortcodes each one showing a different Featured badge?

    6) Would it be possible, for example, to create a “Best of town candidate” as well as a “Best of town confirmed” badges and show them in the GD Archive pages and GD Detail pages according to the status “candidate” or “confirmed” assigned to the business?

    I look forward to your reply.

    Thank you very much for your help.

    Best regards.

    #500338

    Alex Rollin
    Moderator
    Post count: 27815

    1. You can add a badge and set it to show in a corner: https://wpgeodirectory.com/docs-v2/faq/common-examples/#gd_post_badge

    2. Yes

    3. You should translate the archive item template if you want to have different text for badges inside the badge= value.

    4. Yes, and if you are using GeoDirectory Single then there are some limitations and you may need to customize the php template.

    5. If they are added inline and use the same alignment settings, then yes.

    6. If that is a field that has a specific value like that, then yes, I don’t see why not.

    #500420

    jotomas
    Buyer
    Post count: 802

    Hi Alex,

    Thank you very much for your reply.

    Is it possible to enter more than one value to the “Value to match” field of the shortcode? If yes, how? comma separated?

    I look forward to your reply.

    Thank you very much for your help.

    Best regards.

    #500434

    Alex Rollin
    Moderator
    Post count: 27815

    No, that is not possible.

    #500451

    jotomas
    Buyer
    Post count: 802

    Hi Alex,

    Thank you very much for your reply.

    Is it possible to show an specific badge depending of one or more specific categories and / or tags?

    I look forward to your reply.

    Thank you very much for your help.

    Best regards.

    #500470

    Alex Rollin
    Moderator
    Post count: 27815

    It does not seem so, but I will take it up with the developers and find out if there is a way to make that work, ie

    
    
    
    [gd_post_badge key="post_category" condition="is_equal" search="Hotels" badge="Hotels really" bg_color="#0073aa" txt_color="#ffffff"]
    
    #500544

    jotomas
    Buyer
    Post count: 802

    Hi Alex,

    Thank you very much for your reply.

    I will be waiting for your news about if there is a way to make it work.

    Best regards.

    #500760

    Naveen Giri
    Moderator
    Post count: 1559

    Hi @jotomas,

    the badge not seems working for tags and categories. ideally it should work so i am checking it. get back to you soon on it.

    Thanks

    #501022

    jotomas
    Buyer
    Post count: 802

    Hi Naveen,

    Ok, thank you very much for letting me know.

    I look forward to your news.

    Thank you very much once again for your help.

    Best regards.

    #501317

    Naveen Giri
    Moderator
    Post count: 1559

    Hi @jotomas,

    I have created a task for it. so you can track progress here.

    https://github.com/AyeCode/geodirectory/issues/884

    Thank you

    #501606

    jotomas
    Buyer
    Post count: 802

    Hi Naveen,

    Thank you very much once again!

    Best regards.

    #504159

    Kiran
    Moderator
    Post count: 7069

    Hi jotomas,

    This has been implemented and also updated on your site.

    For more info see https://github.com/AyeCode/geodirectory/issues/884#issuecomment-523458285

    Let us know.

    Kiran

    #504523

    jotomas
    Buyer
    Post count: 802

    Hi Kiran,

    Thank you very much for the information.

    I do not understand very well what has been updated exactly. My question was “Is it possible to show an specific badge depending of one or more specific categories and / or tags?” What the update allows exactly to do?

    I look forward to your reply.

    Thank you very much once again for your help.

    Best regards.

    #504527

    Kiran
    Moderator
    Post count: 7069

    Hi,

    As i have provided example ate here: https://github.com/AyeCode/geodirectory/issues/884#issuecomment-523458285

    Example 1:

    [gd_post_badge key="post_category" condition="is_contains" search="32" badge="Attractions" bg_color="#0073aa" txt_color="#ffffff"]

    I have category “Attractions” with ID 32. Above shortcode will display badge “Attractions” on listings which contains category “Attractions”.

    Example 2:

    [gd_post_badge key="post_category" condition="is_contains" search="32,33" badge="Attractions / Hotels" bg_color="#0073aa" txt_color="#ffffff"]

    I have categories “Attractions” with ID 32 & “Hotels” with ID 33. Above shortcode will display badge “Attractions / Hotels” on listings which either contains any category from “Attractions” & “Hotels” or contains both categories.

    Example 3:

    [gd_post_badge key="post_tags" condition="is_contains" search="Museum" badge="Museum" bg_color="#0073aa" txt_color="#ffffff"]

    I have tag “Museum”. Above shortcode will display badge “Museum” on listings which contains tag “Museum”.

    Example 4:

    [gd_post_badge key="post_tags" condition="is_contains" search="Museum,Garden" badge="Museum / Garden" bg_color="#0073aa" txt_color="#ffffff"]

    I have tags “Museum” & “Garden”. Above shortcode will display badge “Museum / Garden” on listings which either contains any tag from “Museum” & “Garden” or contains both tags.

    Let us know.

    Thanks,
    Kiran

    #504534

    jotomas
    Buyer
    Post count: 802

    Hi Kiran,

    Thank you very much for your reply.

    Is there a limit for the number of comma separated categories or tags?

    I look forward to your reply.

    Thank you very much once again for your help.

    Best regards.

Viewing 15 posts - 1 through 15 (of 19 total)

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

Open Support Ticket