is there any way to shorten this if statement?
<?php
$features = get_field('features_&_amenities');
if($features){ ?>
<a href="#<?php the_field('features_&_amenities'); ?>">Features & Amenities</a>
<?php } else { ?>
<a class="none" href="#<?php the_field('features_&_amenities'); ?>">Features & Amenities</a>
<?php } ?>
I use this to display my advance custom field data from database and I'm wondering is there any way to make it short if there any...
thank's for all the suggestion. and explanation.