Seite wählen

source : https://gist.github.com/wpflippercode/57c72a7e5adc2c7f0ee113756fcf360a

 

add_filter(‘wpgmp_markers’,’wpgmp_markers’,1,3 );

function wpgmp_markers($places,$map) {
global $post;
echo ‘<pre>’;
print_r($places[0][‘location’][‘extra_fields’]);
echo ‘<pre>’;
return $places;

}

[14] => Array
        (
            [source] => post
            [title] => domain Dalhem
            [infowindow_content] =>
            [content] => Königin-Luise-Straße 11 Berlin berlin 14195 Germany sonstige (other) sonstige (other) sonstige / other Bio am Telefon/ phone, auf der Website/ online Vor Ort im Geschäft/Bauernhof / Pick up at the farm, Lieferung in Berlin/ Delievery in Berlin Steglitz-Zehlendorf benedicte.ennis@gmail.com
            [address] => 
            [location] => Array
                (
                    [lat] => 52.4914248
                    [lng] => 13.3301784
                    [redirect_custom_link] => 
                    [onclick_action] => marker
                    [redirect_permalink] => https://benoo.co/farm/domain-dalhem/
                    [zoom] => 12
                    [extra_fields] => Array
                        (
                            [%[test_oli]%] => 
                            [%farm_adress%] => 
                            [%field_5e9efeb84af4c%] => 
                            [%street_address%] => 
                            [%field_5e9efef64af4d%] => 
                            [%Adresse des Betriebs (address of the farm) (Street Address)%] => 
                            [post_excerpt] => Königin-Luise-Straße 11 Berlin berlin 14195 Germany sonstige (other) sonstige (other) sonstige / other Bio am Telefon/ phone, auf der Website/ online Vor Ort im Geschäft/Bauernhof / Pick up at the farm, Lieferung in Berlin/ Delievery in Berlin Steglitz-Zehlendorf benedicte.ennis@gmail.com
                            [post_content] => Königin-Luise-Straße 11

Berlin
berlin
14195
Germany
sonstige (other)

sonstige (other)
sonstige / other

Bio

am Telefon/ phone, auf der Website/ online

Vor Ort im Geschäft/Bauernhof / Pick up at the farm, Lieferung in Berlin/ Delievery in Berlin
Steglitz-Zehlendorf
benedicte.ennis@gmail.com
                            [post_title] => domain Dalhem
                            [post_link] => https://benoo.co/farm/domain-dalhem/
                            [post_featured_image] => 
                            [post_categories] => 
                            [post_tags] => 
                            [%_gform-form-id%] => 1
                            [%_gravityformsadvancedpostcreation_entry_id%] => 27
                            [%_gravityformsadvancedpostcreation_feed_id%] => 2
                            [%farm_name%] => domain Dalhem
                            [%farm_adress_street_address%] => Königin-Luise-Straße 11
                            [%farm_adress_city%] => Berlin
                            [%farm_adress_country%] => Germany
                            [%farm_adress_zip__postal_code%] => 14195
                            [%farm_adress_state__province__region%] => berlin
                            [%your_name_first%] => Bene
                            [%your_name_last%] => Ennis
                            [%what_is_your_connexion_with_the_farm%] => sonstige (other)
                            [%farm_website%] => http://www.domaene-dahlem.de/home/
                            [%what_does_the_farm_produce_and_sell%] => sonstige / other
                            [%certified_organic%] => Bio
                            [%instructions_for_ordering%] => am Telefon/ phone, auf der Website/ online
                            [%instructions_for_delivery%] => Vor Ort im Geschäft/Bauernhof / Pick up at the farm, Lieferung in Berlin/ Delievery in Berlin
                            [%areas_in_berlin_you_deliver_to%] => Lieferung in Berlin/ Delievery in Berlin
                            [%additional_information%] => opening hours of the farm for pick-up. They do food boxes.
                            [%email%] => benedicte.ennis@gmail.com
                            [%_edit_lock%] => 1587634293:12
                            [%_edit_last%] => 17
                            [%_wpgmp_location_address%] => 
                            [%_wpgmp_location_city%] => 
                            [%_wpgmp_location_state%] => 
                            [%_wpgmp_location_country%] => 
                            [%_wpgmp_metabox_latitude%] => 52.4914248
                            [%_wpgmp_metabox_longitude%] => 13.3301784
                            [%_wpgmp_metabox_location_redirect%] => marker
                            [%_wpgmp_metabox_custom_link%] => 
                            [%_wpgmp_map_id%] => a:1:{i:0;s:1:"1";}
                            [%_wpgmp_metabox_marker_id%] => a:2:{i:0;s:2:"11";i:1;s:2:"35";}
                            [%_wpgmp_metabox_taxomomies_terms%] => N;
                            [%_wpgmp_extensions_fields%] => N;
                            [%_et_pb_post_hide_nav%] => default
                            [%_et_pb_page_layout%] => et_right_sidebar
                            [%_et_pb_side_nav%] => off
                            [%_et_pb_use_builder%] => 
                            [%_et_pb_first_image%] => 
                            [%_et_pb_truncate_post%] => 
                            [%_et_pb_truncate_post_date%] => 
                            [%_et_pb_old_content%] => 
                            [%_farm_name%] => field_5e9d72dfdc60c
                            [%_farm_adress_street_address%] => field_5e9efef64af4d
                            [%farm_adress_address_line_2%] => 
                            [%_farm_adress_address_line_2%] => field_5e9eff1d4af4e
                            [%_farm_adress_city%] => field_5e9eff334af4f
                            [%_farm_adress_state__province__region%] => field_5e9eff4d4af50
                            [%_farm_adress_zip__postal_code%] => field_5e9eff634af51
                            [%_farm_adress_country%] => field_5e9eff8b4af52
                            [%_farm_adress%] => field_5e9efeb84af4c
                            [%_your_name_first%] => field_5e9effedcd177
                            [%_your_name_last%] => field_5e9f0000cd178
                            [%your_name%] => 
                            [%_your_name%] => field_5e9effdfcd176
                            [%_what_is_your_connexion_with_the_farm%] => field_5e9f0035cd17a
                            [%_farm_website%] => field_5e9f0113b40e3
                            [%_what_does_the_farm_produce_and_sell%] => field_5e9f0139b40e4
                            [%_certified_organic%] => field_5e9f025dcd73c
                            [%_instructions_for_ordering%] => field_5e9f0291cd73d
                            [%please_tell_us_how%] => 
                            [%_please_tell_us_how%] => field_5e9f02c6cd73e
                            [%_instructions_for_delivery%] => field_5e9f02e3cd73f
                            [%_areas_in_berlin_you_deliver_to%] => field_5e9f0318cd740
                            [%_additional_information%] => field_5e9f0357cd741
                            [%_email%] => field_5e9f0383cd742
                            [%organic_bitte_erklaren_specify%] => 
                            [%_organic_bitte_erklaren_specify%] => field_5ea0263cf148f
                            [%connexion_bitte_erklaren_specify%] => 
                            [%_connexion_bitte_erklaren_specify%] => field_5ea02e339e3dc
                            [%product_bitte_erklaren_specify%] => 
                            [%_product_bitte_erklaren_specify%] => field_5ea02e829e3dd
                            [taxonomy=category] => 
                            [taxonomy=post_tag] => 
                            [taxonomy=post_format] => 
                        )

                    [icon] => https://benoo.co/wp-content/uploads/sites/7/2020/04/VEG_Asset-20-2.png
                )

            [id] => 1167
            [custom_filters] => Array
                (
                )

            [infowindow_disable] => 
            [categories] => Array
                (
                    [0] => Array
                        (
                            [icon] => https://benoo.co/wp-content/uploads/sites/7/2020/04/VEG_Asset-20-2.png
                            [name] => Honey
                            [id] => 11
                            [type] => category
                            [extension_fields] => Array
                                (
                                    [cat_order] => 104
                                )

                        )

                    [1] => Array
                        (
                            [icon] => https://benoo.co/wp-content/uploads/sites/7/2020/04/VEG_Asset-20-2.png
                            [name] => Kochbox
                            [id] => 35
                            [type] => category
                            [extension_fields] => Array
                                (
                                    [cat_order] => 201
                                )

                        )

                )

        )