Custom Fields Access
This topic contains 8 replies, has 3 voices, and was last updated by Paolo 10 years, 10 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: custom fields, search
-
AuthorPosts
-
March 17, 2015 at 11:22 pm #34362
I can see the custom fields in the db under wp_geodir_custom_fields.
However, when I use a search plugin (I’ve tried a couple) to access the custom fields, they don’t show up in the plugin’s custom field list.
Why is this and how can I get access to them as default custom fields throughout the site?
i’d like to create my own advanced search as the one that comes with geodir lacks ajax and faceted search options.
March 18, 2015 at 1:04 am #34367The Advanced Search Addon should do what you want.
https://wpgeodirectory.com/addons/advanced-search-filters/March 18, 2015 at 1:54 am #34369Weird. I have that plugin and it does not auto load results when an option is checked.
Are you sure (similar to the below link) it does that? I’ve tested it a few times and it never does ajax style auto results . Do you have a place I can demo how it works on fields? maybe I don’t have it set up correctly.
I really need the facets to be displayed in manner that’s more similar to this: https://facetwp.com/demo/cars/
If I have hundreds of values within a custom field, the advanced search widget, at least from what I’ve seen, does not handle them very elegantly.
Am I missing something or do you know if there’s a way to get the custom fields on all post types within geodir to show up as custom fields in other search plugins?
Thanks
March 18, 2015 at 2:02 am #34370Ok, I checked your demo here: http://wpgeo.directory/restaurants/
It definitely doesn’t do ajax results.
So let me know about the custom fields access. I find it odd that they don’t show when searching through them.
Thanks!
March 18, 2015 at 2:20 am #34371The GD search will not do an ajax search like in the example you posted.
All I can suggest at this time, is to submit your idea as a feature request, see the link in the sidebar.
I misunderstood and thought you wanted to filter the search results on the search page, not ajaxed on the page.March 18, 2015 at 3:09 am #34375Ok, thanks.
I still need the question answered of why the custom fields do not show up in any custom field search through any plugin. I can see all of them from a variety of custom post types with the exception of geo directory.
Please let me know why they don’t show and if there’s anything I can do to get access to them.
Thank you!
March 18, 2015 at 6:54 pm #34454hi,
There’s no way to get the custom fields on all post types within geodir to show up as custom fields in other search plugins, unless you modify those search plugins to use GD custom tables to retrieve data correctly.
If we had to use default WP CPT and custom fields to query the database, GD could have handled maximum few thousands listings on a dedicated server before becoming unusable.
Thx
March 18, 2015 at 9:15 pm #34475Is there a column in the GD custom data table to tie a custom field to a WP post?
March 18, 2015 at 10:36 pm #34504Hi,
there is one column for each custom field.
If you look at wp_geodir_gd_place_details in phpmyadmin or download database browser plugin, you will easily spot them.
They are at the end of the table after the colum “ratings”.
Thanks
-
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket