Only display theme option if entry is present?
-
Hi all,
I am currently using the brilliant NHP theme framework, but I’d like to add the functionality to only display an element if a certain theme option field has data entered into it.
According to the wiki, the theme options can be displayed using the following methods:
<?php $options = get_option('option_name'); ?>
or
<?php echo $options['unique_id']; ?>
Previously with custom fields I have used this to achieve what I want:
<?php $blah1 = get_post_meta($post->ID, 'blah_blah_blah', true); if (!empty($blah1)) : ?>
etc. etc.
But I don’t know how to get this to work with the theme options call.
Can anyone help please?
Many thanks.
Adam.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Only display theme option if entry is present?’ is closed to new replies.