Support

Account

Forum Replies Created

  • Hmmm, Did you see my solution above?

    The process is use the fields while I am developing the site. Once it is time to hand off the site to the client I go into my Theme Settings page that has a couple of basic fields and I check mark the “Hide Class Fields” box.

    This simply adds a little bit of css to the head of my admin on pages with acf fields and hides those fields with display none. If this would prevent those fields from saving it doesn’t really matter because they are already saved.

  • I will go ahead and answer my own question.

    Instead of adding to screen options I just added a new Boolean field to a theme settings page called “Hide Show Settings”.

    I then run the following code

    //hide show classes fields
    function dd_acf_admin_head() {
    	if( get_field('hide_show_classes', 'options') ) { ?>
    		<style>
    			.acf-flexible-content div[data-name="class"] {
        		display: none;
    			}
    		</style>
    	<?php }
    }
    add_action('acf/input/admin_head', 'dd_acf_admin_head');

    This accomplishes my goal of hiding this field but not actually removing it. As its still easy to turn on if needed.

  • I actually fixed this problem myself by changing max_input_vars in php.ini

    This might not be your problem but php 5.3 has a limit of 1000 input vars. When you have a lot of fields with say the collapsible field or repeater field you will get up to over 1000 variables pretty easily. I just upped mine to 10,000 and everything is working correctly.

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