if empty check on wp_list_bookmarks
-
Hey guys. I’m doing some complex PHP coding and am trying to check a link category to see if it is empty or not. If it is empty (there are no links in it) have the code output some text and if it isn’t empty (there are links in it) have the code display the links.
I have the display the links part down but I need a way to check to see if the links are there first. As it is now, it just won’t display anything if the category is empty but I want it to display some text. Without the if else statement though it would just display the text all the time.
Any ideas? I can post some of the code here but it is using several variables and would take some more explaining if needed.
Viewing 9 replies - 1 through 9 (of 9 total)
Viewing 9 replies - 1 through 9 (of 9 total)
- The topic ‘if empty check on wp_list_bookmarks’ is closed to new replies.