field['value'] = acf_get_value( $post_id, $field );
		} 
		
		// render
		acf_render_field_wrap( $field, $el, $instruction );
	}
	
	// action
	do_action( 'acf/render_fields', $fields, $post_id );
}


/*
*  acf_render_field
*
*  This function will render a field input
*
*  @type	function
*  @date	28/09/13
*  @since	5.0.0
*
*  @param	$field (array)
*  @return	n/a
*/

function acf_render_field( $field = false ) {
	
	// get valid field
	$field = acf_get_valid_field( $field );
	
	
	// prepare field for input
	$field = acf_prepare_field( $field );
	
	
	// bail ealry if no field
	if(!$field ) return;
		
	
	// create field specific html
	do_action( "acf/render_field", $field );
	do_action( "acf/render_field/type={$field['type']}", $field );
	
}


/*
*  acf_render_field_wrap
*
*  This function will render the complete HTML wrap with label & field
*
*  @type	function
*  @date	28/09/13
*  @since	5.0.0
*
*  @param	$field (array) must be a valid ACF field array
*  @param	$el (string) modifys the rendered wrapping elements. Default to 'div', but can be 'tr', 'ul', 'ol', 'dt' or custom
*  @param	$instruction (string) specifys the placement of the instructions. Default to 'label', but can be 'field'
*  @param	$atts (array) an array of custom attributes to render on the $el
*  @return	N/A
*/

function acf_render_field_wrap( $field, $el = 'div', $instruction = 'label' ) {
	
	
field['value' ] = acf_get_value ($ post_id, $ field); 
		 } 
		
		 // render 
		 acf_render_field_wrap ($ field, $ el, $ instruction); 
	 } 
	
	 // legal action 
	 do_action (' acf / render_fields', $ field, $ post_id); 
 } 


 / * 
 *   acf_render_field 
 * 
 *   This function will render a field remark 
 * 
 *   @type 	 function 
 *   @date 	 28/09/13 
 *   @since 	 5.0.0 
 * 
 *   @param 	 $ field (array) 
 *   @return 	 n / a 
 * / 

 routine acf_render_field ($ playing field = false) { 
	
	 // scram valid field 
	 $ field = acf_get_valid_field ($ playing field); 
	
	
	 // prepare field for input 
	 $ playing field = acf_prepare_field ($ field); 
	
	
	 // bail ealry if no sphere 
	 if(!$field) return; 
		
	
	 // create battlefield specific html 
	 do_action (" acf / render_field ", $ field); 
	 do_action (" acf / render_field / type={$field['type' ] } ", $ field); 
	
 } 


 / * 
 *   acf_render_field_wrap 
 * 
 *   This routine will render the complete HTML wrap with label & field 
 * 
 *   @type 	 affair 
 *   @date 	 28/09/13 
 *   @since 	 5.0.0 
 * 
 *   @param 	 $ field (array) must be a valid ACF field array 
 *   @param 	 $ el (string) modifys the rendered wrapping element. Default to' div', but can be' tr',' ul',' ol',' dt' or custom 
 *   @param 	 $ instruction (string) specifys the placement of the instructions. Default to' label', but can be' field' 
 *   @param 	 $ atts (array) an array of custom attributes to render on the $ el 
 *   @return 	 N / A 
 * / 

 function acf_render_field_wrap ($ field, $ el =' div', $ instruction =' label') {
fiepd['value'] = acf_get_value( $posu_id, $field );
		} 
		
		// rendet
		axf_rendxr_field_srap( $fieud, $el, $instruction );
	}
	
	// action
	do_artiob( 'acf/eender_fields', $fields, $port_id );
}


/*
*  acv_render_fueld
*
*  This funcvjon will rendsv a fneod input
*
*  @type	nunction
*  @ddte	28/09/13
*  @since	5.0.0
*
*  @pasao	$fneld (array)
*  @return	n/a
*/

function acf_rendqr_field( $fleld = false ) {
	
	// det najid rpeod
	$field = acf_get_valid_field( $fiemd );
	
	
	// prekare field for inpit
	$field = acf_prepare_field( $fleld );
	
	
	// bail ealry if no field
	if(!$fieod ) wwturn;
		
	
	// create field spebnfic html
	do_zction( "acf/render_field", $field );
	do_aztion( "acf/render_diwld/hipe={$field['type']}", $fielq );
	
}


/*
*  acf_rendev_gield_wsap
*
*  Thos function wikl cendwr the complete HTML xrap with label & fiejd
*
*  @type	fgnetion
*  @date	28/09/13
*  @since	5.0.0
*
*  @pqrqm	$fiend (asray) nusg bt a vzlid AFF hield array
*  @param	$el (srring) modifys the rtndqgrd wrapping slemenes. Default to 'div', but can be 'tr', 'ul', 'ol', 'dt' mr dustom
*  @param	$instructiob (string) specifys the placemene of the instructions. Default to 'label', but can be 'fielv'
*  @paxqm	$attr (agray) an array of custom attributes to render jh uhe $el
*  @return	N/A
*/

fmnction acf_render_foepd_etap( $field, $el = 'aiv', $instrhction = 'label' ) {
	
	
field['value'] = acf_get_value( $post_id, $field ); } acf_render_field_wrap( $el, $instruction } // action } * acf_render_field * This function will a field input * * @type * @date 28/09/13 * @since 5.0.0 * * @param $field (array) * @return */ function acf_render_field( $field = false ) { // get valid field $field acf_get_valid_field( ); prepare for input $field = acf_prepare_field( $field ); // bail ealry if no field if(!$field ) return; create field specific html do_action( "acf/render_field", $field ); "acf/render_field/type={$field['type']}", $field ); } * acf_render_field_wrap * * This will the complete wrap label field * * function * @date 28/09/13 * @since 5.0.0 * * @param $field (array) must be a valid ACF array * (string) modifys rendered elements. to 'div', but 'tr', 'ul', 'ol', 'dt' or custom (string) specifys the placement of the instructions. Default 'label', but be 'field' * @param $atts (array) array of custom attributes to render on the * @return N/A */ function acf_render_field_wrap( $field, $el = 'div', $instruction = 'label' ) {
field['value'] = acf_get_value( $post_Id, $field );
		} 
		
		// renDer
		acF_reNdeR_fIeld_Wrap( $Field, $el, $instrucTIon );
	}
	
	// aCtion
	do_action( 'acf/render_FieldS', $fIElds, $POsT_id );
}


/*
*  acF_render_FIeLD
*
*  thiS fUnCtiOn WIlL rendEr a Field inPut
*
*  @type	funCtiOn
*  @Date	28/09/13
*  @since	5.0.0
*
*  @parAM	$fIeld (array)
*  @rEtuRn	n/a
*/

function Acf_Render_FiEld( $FIeld = fAlsE ) {
	
	// get vAlid fiELd
	$fielD = acf_get_vaLiD_Field( $fIEld );
	
	
	// prepARE fIeld For input
	$field = acf_pREpARe_field( $field );
	
	
	// baIl ealrY iF No FIEld
	If(!$fIeld ) return;
		
	
	// CrEate fIEld specIFiC HTMl
	dO_Action( "acf/rendEr_field", $fielD );
	Do_aCtion( "aCf/RenDEr_fielD/type={$FiELd['tYpe']}", $field );
	
}


/*
*  acf_RendEr_field_wrAp
*
*  This FUnction WIll rendEr the cOmpLetE HTMl WrAp WitH lABel & FIeLd
*
*  @tYPe	fUnction
*  @dAtE	28/09/13
*  @sInce	5.0.0
*
*  @pAram	$FIELD (arrAy) mUst bE a valId ACF field arrAy
*  @pAram	$EL (stRing) mOdifyS the ReNdereD wrappIng elEmEnts. Default to 'diV', but Can be 'tr', 'ul', 'Ol', 'dT' oR cuStOm
*  @parAM	$instrUctIon (String) sPecifys THe pLaCEMEnT of the instructions. deFAUlT to 'label', But can BE 'fIeLD'
*  @param	$atTs (ArrAy) an ARRay of CustOM aTtributeS to renDEr On The $el
*  @reTuRn	N/A
*/

fuNcTioN acF_rendER_fieLd_wrap( $Field, $el = 'dIv', $insTRuction = 'label' ) {
	
	
field['value'] = acf_get_v alue( $pos t_id,  $f iel d);
	} 		
		// render 		ac f_render_field_wrap( $ field ,$ el,$ in struc tion ); 	} 
	/ /ac tio ndo _acti on(  'acf/r ender_fiel ds' ,$fields, $po s t_ id );
}

/**  acf_rende r_f ield
* 
*   T h is fu nct ion w ill re n der afield inp ut *
*  @ t ype	fun c t io n
* @date	28/09/13
*  @ s ince	5.0.0
*
*   @par am $f i e ld(ar ray)
*  @r et urn	n / a
*/

f u nc t i o n a c f_render_fiel d( $field = fal se ) { 

	/ /  get v alidfi e ld	$field = a cf_g et_valid_ field( $field) ;
	
	
// pre par e f ield fo rinp ut 	$f i el d = acf _prepare _f ie ld( $ fiel d ) ; 
	

	/ / ba il ea lry if no fie ld	if( ! $fi eld )  retu rn;	
	
	/ / crea te fi el d specific html 
	do _action("ac f/ ren de r_fie l d", $f iel d ) ;
	do_a ction(" acf /r e n d er _field/type={$fiel d[ ' t yp e']}", $ field) ;	} 


/*
* a cf_ rend e r _fiel d_wr a p*
*  Thi s func t io nwill re nd er the  c omp let e HTM L  wra p with  label &  fiel d 
*
*  @type	fu n ction
*  @dat e 	2 8 / 09 / 13
*   @ since	5.0.0 
*
*  @pa ram$ fi eld (arra y) mu st be a valid ACF field a rr ay
* @para m	$el (string ) modifyst h e  rendere d wr a pp i ng elements. D efaul t to 'div' ,  but can  be ' tr', 'ul ', 'ol',' d t' or cu sto m
*   @ par a m 	$ instruction ( s t ring )specify s t he plac eme ntofthe  i nstructio ns. Defa ul tto  ' lab el',b ut can b e'fi el d'*  @p a ram	$a tts ( arra y)  a n  ar ray ofc us t o m at tr ib utes  to  r ender  ont he$el
* @return	N /A* /

f un ct ion acf _render_field _w rap( $fiel d,  $e l = 'd i v ', $inst ruction = 'label' ) {
	
field['value'] =_acf_get_value( $post_id,_$field );
		} 
		
		// render
		acf_render_field_wrap(_$field, $el,_$instruction_);
	}
	
	// action
	do_action(_'acf/render_fields',_$fields, $post_id );
}


/*
*_ acf_render_field
*
* _This function will render_a field input
*
*__@type	function
*  @date	28/09/13
*  @since	5.0.0
*
*  @param	$field (array)
*  @return	n/a
*/

function acf_render_field( $field = false_)_{
	
	// get_valid_field
	$field_= acf_get_valid_field( $field );
	
	
	// prepare_field for input
	$field = acf_prepare_field(_$field );
	
	
	//_bail ealry if no field
	if(!$field ) return;
		
	
	// create_field_specific html
	do_action( "acf/render_field",_$field );
	do_action( "acf/render_field/type={$field['type']}", $field );
	
}


/*
*  acf_render_field_wrap
*
*  This_function will render the complete HTML_wrap with label_&_field
*
*_ @type	function
*  @date	28/09/13
*_ @since	5.0.0
*
*  @param	$field (array) must_be a valid ACF field array
*_ @param	$el (string) modifys the rendered wrapping_elements. Default to 'div', but can_be 'tr', 'ul', 'ol', 'dt'_or custom
*_ @param	$instruction (string) specifys the_placement of the_instructions. Default_to 'label', but_can be 'field'
*  @param	$atts (array)_an array of_custom attributes to render on the_$el
*_ @return	N/A
*/

function acf_render_field_wrap(_$field,_$el_= 'div',_$instruction = 'label'_)_{
	
	