• Resolved MrWilson2013

    (@mrwilson2013)


    Hey!

    I’ve been trying to display something by default if a value isnt filled out. heres what I’m using

    <?php if ( CFS()->get( 'manual_price' ) ){ ?>
    
    <?php echo CFS()->get( 'manual_price'); ?> </div>
    
    <?php } else { ?>
    
    Default Value 
    
    <?php } ?>

    But this just gives me a syntax error even though i’m pretty sure that should work.

    Any help would be greatly appreciated!

    James

    https://wordpress.org/plugins/custom-field-suite/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)

The topic ‘PHP IF field is filled’ is closed to new replies.