GeoDirectory – Adding a custom form in the custom post editor (backend)

[ad_1]

Hi!

Im currently trying to find a way to add a custom form in the backend editor for each custom post (“places”, gd\_place). I need these values to be retrieved later for a pdf document. So far I’ve tried this:

1) I was trying with ACF until I realized both plugins are not compatible with each other because they manage their db differently. ACF is having a hard time retrieving the form values when in a ‘gd\_place’ CPT (it returns empty values and keeps adding new rows to post\_meta table). So I ditched ACF.

2) Im aware of the Listing Form in the Places plugin’s settings. I made the form using these options, and now I’m in need of retrieving these values through php. I looked through the documentation, and while I found a lot of information on the option the plugin provides, I couldn’t find how.

The idea would be to do something like this, but with a GeoDirectory provided function:
$value = get\_value(‘field\_key’, $post\_id);

3) Is there a way to add a form directly into the gd\_place backend editor with php?

I’ll appreciate any help you could provide. Thanks in advance.

[ad_2]
1 Comment
  1. [https://docs.wpgeodirectory.com/article/303-how-to-add-a-custom-field-to-cpt]) ?

    Retrieve values with `geodir_get_post_meta`

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer