$TMPL tag with if statements

armaclans

Member
I have a radial custom field that has internal values of "true" and "false"

I cannot find any php tutorials for $TMPL tags, and I am trying to create a php code that says:

PHP:
if ($TMPL['$acf_recruiting'] == "true" )
{
    $TMPL['recruitingyes'] = '<div>New Code that says yes</div>';

} else {
 
    $TMPL['recruitingno'] = '<div>New Code that says No</div>';
}
Shouldn't the $TMPL['$acf_recruiting'] be a string? Sorry guys, I am really trying here.
 

Basti

Administrator
Staff member
Ah, the small things in coding, your worst nightmare and hours of trouble :)
 
Top