[GeoDirectory V2] gd_loop function not working with sorting options
This topic contains 7 replies, has 2 voices, and was last updated by Alex Rollin 5 years, 5 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: bug, gd_loop, gd_loop_actions, GeoDirectory V2, sort order, sorting
-
AuthorPosts
-
July 10, 2019 at 1:46 pm #496967
Hello,
I would like to preemptively say that I can not provide wp-admin access for team members as we are working on a national multi-site install. I am hoping this issue can be addressed without that kind of information being exchanged. We also can not adjust custom code without developer interference, so I am hoping to avoid that too.
Here is the problem: I can not get the gd_loop function to load accurate sorting orders. Our company is testing GeoDirectory V2 on a staging environment after running into multiple issues with GeoDirectory V1 and we thought this would be a much simpler process, but this issue is incredibly frustrating.
We require featured listings to display first in our directories (this would be, I assume, via the GD Archive page template when accessing a CPT on the front end of the site) due to advertising obligations, and I have set “Is Featured” in the Sorting tab of my CPT to default and the recommended option of “Descending.” The sort order on the front end does not change whatsoever no matter what I do in the Sorting tab; yes, I have “Featured” added as a custom field and I have attempted to make other additions and deletions to the GD Archive page template with success… so it appears as if the gd_loop function is bugged, or am I missing something important.
According to the documentation on your site, altering the sorting options in the CPT settings is supposed to modify the gd_loop function for that particular CPT, but it is not doing that. I can not set up a manual sort order in custom fields either as we have thousands of listings and it would take much too long to do. I have attempted clearing cache on my browser and site multiple times to no avail. In GeoDirectory V1 this process was still flawed but the end goal was still attainable… now, I can not find a solution whatsoever. Even adjusting the sorting options to sort by A-Z does not work.
I would also like to add that my additional sorting options do not even show up on my GD Archive CPT pages (via gd_loop_actions). These are not “Search” pages as I do not initiate a search, they are the CPT landing pages. Is there a larger caching issue at work here, or is this a known bug with the gd_loop functionality? I will provide some screenshots with what I have set up. Any insight that can be provided would be very helpful. Thank you.
July 10, 2019 at 3:19 pm #496986I don’t see/hear anything wrong with the config.
How do you know the order is not right? Can you add a badge to featured listings so they have a visual indicator? Link?
Is GD Loop Actions showing in the code/source?geodir-loop-actions-container
– Maybe it is hidden with CSS?
If this is a bug, try recreating it on a fresh install so we can debug it.
July 10, 2019 at 4:02 pm #496996This reply has been marked as private.July 10, 2019 at 5:35 pm #497014Do you use the pricing manager?
If so are the listings in a package that includes featured?I would say that jQuery is suspect! Try removing it.
July 10, 2019 at 8:22 pm #497051This reply has been marked as private.July 10, 2019 at 9:49 pm #497058If you want some listings to be featured, and some to not be featured, then you will need at least 2 packages, one that includes the featured field and one that excludes it.
https://wpgeodirectory.com/docs-v2/places/custom/#featured
If featured is currently excluded, you will notice when you edit a listing, mark it features, and then save, that, upon reviewing the listing in the backend that the featured field will be unchecked. See the link above for more info.
We recommend removing custom code to restore original functionality.
July 11, 2019 at 4:49 pm #497152This reply has been marked as private.July 11, 2019 at 7:05 pm #497188If you aren’t selling listings then you can disable pricing manager and manually adjust the featured field. Otherwise, it will work as I stated above and at the links I provided.
About search, GD uses custom tables and we don’t currently integrate with any 3rd party search plugins or services.
We do not debug custom code as that is considered customization. What I recommend is that you remove that particular jQuery used on the select2 options to see if it restores the loop actions sort select feature.
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket