Custom Fields Access

This topic contains 8 replies, has 3 voices, and was last updated by  Paolo 9 years, 9 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #34362

    friendly fire
    Buyer
    Post count: 37

    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.

    #34367

    Guust
    Moderator
    Post count: 29970

    The Advanced Search Addon should do what you want.
    https://wpgeodirectory.com/addons/advanced-search-filters/

    #34369

    friendly fire
    Buyer
    Post count: 37

    Weird. 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

    #34370

    friendly fire
    Buyer
    Post count: 37

    Ok, 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!

    #34371

    Guust
    Moderator
    Post count: 29970

    The 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.

    #34375

    friendly fire
    Buyer
    Post count: 37

    Ok, 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!

    #34454

    Paolo
    Site Admin
    Post count: 31206

    hi,

    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

    #34475

    friendly fire
    Buyer
    Post count: 37

    Is there a column in the GD custom data table to tie a custom field to a WP post?

    #34504

    Paolo
    Site Admin
    Post count: 31206

    Hi,

    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

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