Help retrieving email address and other data from imported listings

This topic contains 6 replies, has 3 voices, and was last updated by  Naveen Giri 4 years, 6 months ago.

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

Open Support Ticket
  • Author
    Posts
  • #515523

    Jim Sabellico
    Expired Member
    Post count: 6

    Hey there

    I’m working on setting up an email notification script to basically say, Hey we added your listing to our directory.

    The issue I’m running into is I can’t find where the email address is saved. Is it saved in custom fields, info box, I don’t know where it is.

    Secondly I want to be able to display many of those information on the listing itself. We’re doing this programmatically so any help in retrieving the listing data from wordpress would be greatly appreciated!

    Here’s an example link https://takemecamping.org/campground-directory/united-states/pennsylvania/kennett-square/longwood-gardens/

    Let me know if you need any info from me!

    #515544

    Alex Rollin
    Moderator
    Post count: 27815

    For displaying GD Info on GD templates like the GD Details page:
    The GD templates are easily edited inside WP because they are WP Pages. You can find an overview of the template system here, and I recommend you take a look at the Details page template first.
    https://wpgeodirectory.com/docs-v2/templates/

    For using GD listing data in another plugin:

    A table is created for each CPT, and the value will be stored in the table with the same key used to create the field.

    An example for getting field values can be seen here:
    https://wpgeodirectory.com/support/topic/output-location-name-in-description/#post-515154

    Also see:
    https://wpgeodirectory.com/docs-v2/faq/customizing/

    #515560

    Jim Sabellico
    Expired Member
    Post count: 6

    I’m getting this error with my code: (attached)

    $fb = get_post_meta($post->ID,"geodir_facebook",true);
    var_dump($fb);

    Same for email. When I look at the database I dont see those fields in your custom table.

    Any reason why?

    #515568

    Naveen Giri
    Moderator
    Post count: 1559

    Hi Jim,

    That means either you do not have facebook field or it is not active.
    It seems country field is an active custom fields on your site.
    so please try this

    
    
    
    $country = get_post_meta($post->ID,"geodir_country",true);
    var_dump($country);
    

    you can check all fields here and you can load data for one which is active.

    If still you face any issue. please share login and FTP details in private reply, so I can take a look.

    Thanks

    #516001

    Jim Sabellico
    Expired Member
    Post count: 6
    This reply has been marked as private.
    #516017

    Jim Sabellico
    Expired Member
    Post count: 6

    FYI I deleted all the data from table to make a fresh import. Not sure if that was unsafe… I backed up anyway.

    We’re going to be loading up 10,000+ listing so I’m still a bit concerned if this plugin is leaving deleted data in the database?

    #516028

    Naveen Giri
    Moderator
    Post count: 1559

    Hi Jim,

    Gd not keep deleted post data. but it keep track of data of post in trash atm.
    it maybe because of some other issue. I will need to check site backend to see the issue cause.

    Thanks

Viewing 7 posts - 1 through 7 (of 7 total)

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

Open Support Ticket