Support

Account

Forum Replies Created

  • Thanks for your reply but unfortunately not work

    If I ‘die’ just befor thee function_exists(), it dies… but I never go through :-/

    <?php
    if ( ! defined( 'ABSPATH' ) ){ exit; } // Exit if accessed directly
    
    	function wpcasama_create_acf_field() {
    	
    	
    		if ( function_exists( "acf_add_local_field_group" ) ) {
    			
    			acf_add_local_field_group( array(
    				'id'         => 'acf_mail-alert',
    				'title'      => 'Mail Alert',
    				'fields'     => array(
    					array(
    						'key'           => 'field_5ac3bb4effff5',
    						'label'         => 'Phone',
    						'name'          => 'wpcasama_phone',
    						'type'          => 'text',
    						'default_value' => '',
    						'placeholder'   => '',
    						'prepend'       => '',
    						'append'        => '',
    						'formatting'    => 'none',
    						'maxlength'     => '',
    					),
    					array(
    						'key'           => 'field_5ac3bb9adb144',
    						'label'         => 'city',
    						'name'          => 'wpcasama_city',
    						'type'          => 'text',
    						'default_value' => '',
    						'placeholder'   => '',
    						'prepend'       => '',
    						'append'        => '',
    						'formatting'    => 'html',
    						'maxlength'     => '',
    					),
    					array(
    						'key'           => 'field_5ac3bbc9db145',
    						'label'         => 'Minimum Price',
    						'name'          => 'wpcasama_min_price',
    						'type'          => 'number',
    						'default_value' => '',
    						'placeholder'   => '',
    						'prepend'       => '',
    						'append'        => '',
    						'min'           => 0,
    						'max'           => '',
    						'step'          => 1,
    					),
    					array(
    						'key'           => 'field_5ac3bbf8db146',
    						'label'         => 'Maximum Price',
    						'name'          => 'maximum_price',
    						'type'          => 'number',
    						'default_value' => '',
    						'placeholder'   => '',
    						'prepend'       => '',
    						'append'        => '',
    						'min'           => 0,
    						'max'           => '',
    						'step'          => 1,
    					),
    				),
    				'location'   => array(
    					array(
    						array(
    							'param'    => 'post_type',
    							'operator' => '==',
    							'value'    => 'wpcasa-mail-alerte',
    							'order_no' => 0,
    							'group_no' => 0,
    						),
    					),
    				),
    				'options'    => array(
    					'position'       => 'normal',
    					'layout'         => 'no_box',
    					'hide_on_screen' => array(),
    				),
    				'menu_order' => 0,
    			) );
    		}
    	}
    	
    	add_action('init', 'wpcasama_create_acf_field', 200);
  • Unfortunately the same, I don’t succed to go through tje ‘if’ :-/

  • Hello,
    I’ve the same problem with ACF 5.5.3
    I’ve to click on the magnifying glass to search the address, then adress is stored. But there’s no live search as in BO

  • Hello,
    I’m using the acf_form_head() in my template and the Gmaps Script is called by wp_enqueue_script.

    API Key is added as mentionned

  • This reply has been marked as private.
  • Hi @james

    Many thx for your help
    I have a js script noted in 404 on the Google Chrome Console but this js file is well place on my ftp with the same path…

    i think it cause a JS conflict and stop…
    but can’t understand why this JS is “404”

  • Sorry, it was a mistake in my head..
    post resolved

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