Support

Account

Home Forums General Issues Forming URL from 2 fields Reply To: Forming URL from 2 fields

  • Hi idesignandhost

    Question 1.
    Yes, you can simply use php concatenate. For example:

    
    $field_1 = get_field('field_1');
    $field_2 = get_field('field_2');
    
    $join_me = 'Hello, using a . joins things together: '.$field_1.' and '.$field_2;

    Question 2
    You can try something like:

    
    function wp_disable_acf_fields( $field ) {
    	if( !is_admin() ){
    		$field['disabled'] = 1;
    	
    	}
    	return $field;
    }
    add_filter('acf/load_field/key=field_5996a05bc0d7d', 'wp_disable_acf_fields');	#replace field key