GD listing shortcode

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

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

Open Support Ticket

Tagged: 

  • Author
    Posts
  • #390981

    DR
    Expired Member
    Post count: 78

    Hi guys,
    Need some help here please. We have two issues:

    First: We tried using these codes to create 2 different profile:

    1. [gd_listings layout=”4″ post_number=”5″ show_favorites_only=”1″ favorites_by_user=””]

    2. [gd_listings layout=”4″ post_number=”5″ post_author=”current”]

    The first one works fine (show favorites only) but the second one just keeps showing ALL the listings.

    We have checked through and have not seen what I may be missing.

    Second: We are using the PO/MO Editor plugin for my field edits and it’s working great except for the GD Franchises language files.

    Let us know what’s needed please

    Cheers

    DR

    #391009

    Guust
    Moderator
    Post count: 29970

    “current” is not an option, see https://wpgeodirectory.com/docs/core-shortcodes/#listings

    post_author – Filter by current_user, current_author or ID (default = unfiltered)
    post_author=”current_user” will filter the listings by author id of the logged in user
    post_author=”current_author” will filter the listings by author id of current viewing post/listing
    post_author=”11″ will filter the listings by author id = 11

    For translation, please use PoEdit:
    https://wpgeodirectory.com/docs/translating-addons/

    Thanks

    #391028

    DR
    Expired Member
    Post count: 78

    Thanks Guust,
    There was a slight error in the submission when we pasted the shortcode. What we meant was that we had actually tried with:
    1. [gd_listings layout=”4″ post_number=”5″ post_author=”current_user”] and
    2. [gd_listings layout=”4″ post_number=”5″ post_author=”current_author”]..
    But it still keeps showing all listings in the profile.

    About the PoEdit. We had in fact used it successfully in previous tries but switched to the MP/MO Editor when thing got a bit loopy. Will try again and feed back.

    Thank you

    DR

    #391034

    Guust
    Moderator
    Post count: 29970

    1.

    [gd_listings layout="4" post_number="4" post_author="current_user"]

    Have you tried logging out or logging in as a non-admin?

    2.

    [gd_listings layout="4" post_number="4" post_author="current_author"]

    Make sure to use straight quotes, not curly quotes.

    We updated https://wpgeodirectory.com/docs/core-shortcodes/#listings to clarify the settings.

    Thanks

    #391038

    DR
    Expired Member
    Post count: 78

    Hi Guust..
    Yes, we did login as non-admin.. We logged in as a subscriber. And used the codes just as we pasted here, not curly quotes.

    We also checked the clarified settings and think it maybe this bit:

    [also works on Author pages, but only if you do not use any other plugin that replaces the Author page (for example UsersWP)]

    causing issues. We are posting the shortcode in a page created by another plugin.. But thing is, it works for the ‘my favorite’ shortcode just fine used in a similar manner. Are there any suggestions please?

    Thank you.

    DR

    #391041

    Guust
    Moderator
    Post count: 29970

    Please post your URL and WP admin details in a private reply, and also the details of the pages where we can find the shortcodes used.

    Thanks

    #391054

    DR
    Expired Member
    Post count: 78
    This reply has been marked as private.
    #391059

    Guust
    Moderator
    Post count: 29970

    I think the shortcodes only work on GD pages, other pages generated by other plugins do not have the required GD data to call on.

    I’ll get a developer to confirm that for you.

    #391086

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #391275

    DR
    Expired Member
    Post count: 78
    This reply has been marked as private.
    #391337

    Paolo
    Site Admin
    Post count: 31206

    Hi Dipe,

    just wanted to let you know that Kiran is on vacation today (independence day) and will pick up this tomorrow 1st thing.

    Thanks for your patience,

    #391408

    Kiran
    Moderator
    Post count: 7069

    Hi Dipe,

    > The second one just keeps showing ALL the listings.
    < Fixed

    FYI post_author=”current_author” OR post_author=”current” only works if you are using shortcode on detail blog post(post_type = post) or detail listing(post_type = gd_place, gd_event etc…) page pages.
    Standard pages normally added by admin and those pages has post_author = admin user ID. So use post_author=”current_user” if you are using shortcode on standard pages (post_type = page).

    As you have applied users roles limitation for all three shortcodes, shortcode will display results for related user role only.

    Let us know.

    Thanks,
    Kiran

    #391456

    DR
    Expired Member
    Post count: 78

    Thank you Kiran and welcome back from your vacation.
    We checked and you are right. It works. Now when you say ‘fixed’, do you mean in general or in this situation in particular…? If it’s a general fix, do we have to wait for a next release for it to kick in? If it is in particular, can we know what was done please?

    Thank you

    DR

    #391457

    Kiran
    Moderator
    Post count: 7069

    Don’t worry i have updated patch to fix on your site, and it will be included in next releases too.

    Kiran

    #391490

    DR
    Expired Member
    Post count: 78

    Sweet.

Viewing 15 posts - 1 through 15 (of 15 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