Support

Account

Forum Replies Created

  • Hey Elliot,

    If it helps in any way… the cl_category taxonomy is set from a front end form by Gravity Forms and the field group that shows is completely dependent on that selection. It’s hidden purely for UI reasons.

    Thanks for looking in,
    JW

  • This reply has been marked as private.
  • I have seen this on other hardware (traditional windows laptop), and I have seen it happen now on fields other than taxonomy fields, but it seems most common touch screen devices.

    Your guess on the location rules resetting seems plausible because I have noticed that once the meta box disappears… if I then save the post as a draft, the data/taxonomy I entered will save as expected. When the page refreshes (after the draft saves) the meta box is back where it is expected.

    JW

  • Here’s the php export for two fields where the conditional logic is not working. I have removed several additional options from the choices array on the first field for brevity.

    array (
    	'key' => 'field_538f375f143cb',
    	'label' => 'Show Related Posts',
    	'name' => 'tmv_related_posts',
    	'prefix' => '',
    	'type' => 'select',
    	'instructions' => '',
    	'required' => 0,
    	'conditional_logic' => 0,
    	'choices' => array (
    		'none' => 'Do not show related posts.',
    		'category' => 'Show posts from Category.',
    		),
    	'default_value' => array (
    		'none' => 'Do not show related posts.',
    	),
    	'allow_null' => 0,
    	'multiple' => 0,
    	'ui' => 0,
    	'ajax' => 0,
    	'placeholder' => '',
    	'disabled' => 0,
    	'readonly' => 0,
    	),
    array (
    	'key' => 'field_538f4d2c3134b',
    	'label' => 'Related Category',
    	'name' => 'related_category',
    	'prefix' => '',
    	'type' => 'taxonomy',
    	'instructions' => '',
    	'required' => 0,
    	'conditional_logic' => array (
    		array (
    			array (
    			'field' => 'field_538f375f143cb',
    			'operator' => '==',
    			'value' => 'category',
    			),
    		),
    	),
    	'taxonomy' => 'category',
    	'field_type' => 'select',
    	'allow_null' => 1,
    	'load_save_terms' => 0,
    	'return_format' => 'id',
    	'multiple' => 0,
    	),
    

    Happy to provide whatever else you need if that isn’t enough.
    JW

  • Oops, Spoke to early on a solution, Here’s the screen shot:

    Display of select field default_option populating select field choices.

    Here’s the code that is creating the field:

    array (
    	'key' => 'field_538f375f143cb',
    	'label' => 'Show Related Posts',
    	'name' => 'tmv_related_posts',
    	'prefix' => '',
    	'type' => 'select',
    	'instructions' => '',
    	'required' => 0,
    	'conditional_logic' => 0,
    	'choices' => array (
    		'none' => 'Do not show related posts.',
    		'category' => 'Show posts from Category.',
    		'tmv_feature_type' => 'Show posts from Features.',
    		'tmv_topic' => 'Show posts from Topics.',
    		'post_tag' => 'Show posts from Tag.',
    		'tmv_today_type' => 'Show posts from Today.',
    		'cl_category' => 'Show posts from Classifieds.',
    		'cl_job_field' => 'Show posts from Job Type.',
    		'tmv_sport_tax' => 'Show posts from Sports.',
    		'tmv_sport_team_tax' => 'Show posts from Teams.',
    		'tmv_business_news_type' => 'Show posts from Business News.',
    		'tmv_business_field' => 'Show posts from field.',
    		'tmv_fr_lake' => 'Show posts from lake.',
    	),
    	'default_value' => array (
    		'none' => 'Do not show related posts.',
    	),
    	'allow_null' => 0,
    	'multiple' => 0,
    	'ui' => 0,
    	'ajax' => 0,
    	'placeholder' => '',
    	'disabled' => 0,
    	'readonly' => 0,
    	),
    
  • Update: Have tested on Android 4.4.2 on a Moto-X phone, the issue is still there… Selecting a Taxonomy from a Taxonomy field causes the entire field group to disappear.

  • Just looked in… I’m guessing it was a caching issue since it seems to have cleared up… If I notice it again I’ll post a screen shot.

  • I’m having this same problem.

    Some details:

    WP 3.9.1
    ACF: 4.38

    Radio Field, Not Required, “Other” Option enabled.

    The first option is always selected when creating a new post, and I would prefer to have this blank. Am switching to a “Select” until we have a solution, but will loose the “other” option functionality.

  • Hi Sreelesh:

    I think you’re a little confused about what ACF does. The plugin creates fields that you can attach to a post or custom post type like events, but it does not create the custom post type itself.

    To create a CPT you’ll need to use another plugin that creates them or hard code them yourself and add them to your theme’s functions file… there are lots of code generators out there, here’s one: http://generatewp.com/

    Once you’ve created the cpt, ACF can be used to add custom data to the post. For events, it would be used to add fields like date and time, location, description etc.

    Hope that helps,
    JW

  • Elliot:

    More details:

    Trying to produce a Google Map from Inside a repeater field that renders in a tab. The map fails to render, the tab layout breaks.

    Wordpress: 3.8.1
    ACF 4.3.5

    More info on the the error I’m getting as per Chrome/Console:

    Uncaught TypeError: Cannot read property 'Geocoder' of undefined input.min.js?ver=4.3.5:13
    acf.fields.google_map.init input.min.js?ver=4.3.5:13
    (anonymous function) input.min.js?ver=4.3.5:13
    x.extend.each jquery.js?ver=1.10.2:3
    x.fn.x.each jquery.js?ver=1.10.2:3
    (anonymous function) input.min.js?ver=4.3.5:13
    x.event.dispatch jquery.js?ver=1.10.2:4
    v.handle jquery.js?ver=1.10.2:4
    x.event.trigger jquery.js?ver=1.10.2:4
    e.event.trigger jquery-migrate.min.js?ver=1.2.1:2
    (anonymous function) jquery.js?ver=1.10.2:4
    x.extend.each jquery.js?ver=1.10.2:3
    x.fn.x.each jquery.js?ver=1.10.2:3
    x.fn.extend.trigger jquery.js?ver=1.10.2:4
    (anonymous function)
  • NBishop:

    You’re looking for something that’s clearly too obvious. It happens to me all the time. 😉 Tabs are created from the “Field Type” field when adding a new field. Scroll to the bottom, select tab. All the fields you put underneath will render in side the tab. It’s very slick.

    Elliot:

    Still struggling with this and cannot seem to identify a plugin that’s causing the problem, though I think that is the issue. I’m happy to PM you login credentials if it would be any help. Any advice would be greatly appreciated as I’d really like to have both maps and tabs working for this project.

    Thanks,
    Josh

  • Was noticing this same behavior on a couple field groups… I think in my case I narrowed the problem to the google map field.

    Caught this error from the Chrome Console:

    TypeError: Cannot read property ‘Geocoder’ of undefined

    In instances where the tabs fail, the Google Map field default map is failing to render. When I remove the map field, the tabs render.

    Am testing to see if the maps field is failing because of another plugin…

    JW

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