GD listing shortcode
This topic contains 14 replies, has 4 voices, and was last updated by DR 7 years, 3 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: shortcodes
-
AuthorPosts
-
August 13, 2017 at 11:56 pm #390981
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
August 14, 2017 at 4:20 am #391009“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 = 11For translation, please use PoEdit:
https://wpgeodirectory.com/docs/translating-addons/Thanks
August 14, 2017 at 6:52 am #391028Thanks 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
August 14, 2017 at 8:41 am #3910341.
[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
August 14, 2017 at 9:18 am #391038Hi 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
August 14, 2017 at 9:55 am #391041Please 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
August 14, 2017 at 11:48 am #391054This reply has been marked as private.August 14, 2017 at 12:08 pm #391059I 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.
August 14, 2017 at 1:50 pm #391086This reply has been marked as private.August 15, 2017 at 11:06 am #391275This reply has been marked as private.August 15, 2017 at 7:09 pm #391337Hi 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,
August 16, 2017 at 7:56 am #391408Hi Dipe,
> The second one just keeps showing ALL the listings.
< FixedFYI 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,
KiranAugust 16, 2017 at 1:56 pm #391456Thank 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
August 16, 2017 at 2:03 pm #391457Don’t worry i have updated patch to fix on your site, and it will be included in next releases too.
Kiran
August 16, 2017 at 4:33 pm #391490Sweet.
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket