I use Advanced Description Field (default: {descriptionfield} section.
I need if else method in description field section.. I am using ACF plugin.
For example:
<?php if( get_field(‘alt_konu’) ): ?><span class=”alt_konu”>Alt konu: {alt_konu}</span><?php endif; ?>
But sometimes alt_konu field empty.. I dont need empty string text… I seen always “Alt konu:” text..
I am trying all PHP method if and else… Dont accept your description section..
For example I am trying remove text this PHP method:
<?PHP
$altkonu='<span class=”alt_konu”>Alt konu: {alt_konu}</span>’;
$altkonugizli='<span class=”alt_konu” style=”display:none;”></span>’;
if (get_field(‘alt_konu’)!=”){ echo $altkonu; } else{define(‘Alt Konu:’,’ ‘); echo $altkonugizli;} ?>
All method not acceptable..
How possible ı using if and else method in description section?
Why dont hidden string text “Alt konu:”… Field value hidden but ı added manuel text showing…
Please check..
LOCATION SETTINGS:
https://uro365.uroturk.org.tr/wp-admin/admin.php?page=asp_settings&asp_sid=1#701