Can someone tell, how to check whether it's empty?
<?php bloginfo('description'); ?>
Something like:
<?php if (!empty bloginfo('description');) ?>
Thanks a lot.
|
Can someone tell, how to check whether it's empty?
Something like:
Thanks a lot. |
|||
|
|
bloginfo echoes the description, get_bloginfo returns php variable |
||||
|
ptriek's example checks if the value is true(an empty value still evaluates to true, hence why it doesn't work)..
NOTE: An empty check with also ring true for empty strings, so covers exactly the same case as the code you posted in the comment on ptriek's answer.. |
|||
|
|