Support

Account

Forum Replies Created

  • UPDATE: I can get things working, but then as soon as I change one of the custom fields on the backend it stops working. It will just display nothing, or display an old value.

    I have no caching plugins running, and cloudflare is turned off. I am also clearing the browser cache each time.

    Why is this happening?

  • As per another thread (https://support.advancedcustomfields.com/forums/topic/the-group-field/) I have also tried the below code, but it doesn’t work either.

    /* Add 14 eyes shortcode */
    function shortcode_14_eyes() {
    
    	$privacy = get_field('privacy');	
    
    	if( $privacy ):
    	    if( $privacy['fourteen_eyes_country'] ):
    	            return '<span style="color:#EE121E;"><i class="fa fa-exclamation-triangle"></i></span>';
        	    endif;
    	endif;
    
    }
    add_shortcode( '14_eyes', 'shortcode_14_eyes' );
Viewing 2 posts - 1 through 2 (of 2 total)