2012-04-22, 23:27:15
Hi guys!
I'm developing 3 new free responsive html5 themes for Get simple.
I'll post them soon.
By the way, here's my question.
I need to check if a given component is empty or not.
If it is not empty, the template shows some code and the component itself, if it is empy, it won't.
I've tried using
but the function does not work (it prints out the content, since the function get_component doesn't return a value, but prints it out directly).
Any ideas please?
Thank you guys!
Marco
I'm developing 3 new free responsive html5 themes for Get simple.
I'll post them soon.
By the way, here's my question.
I need to check if a given component is empty or not.
If it is not empty, the template shows some code and the component itself, if it is empy, it won't.
I've tried using
Code:
<?php
if (get_component('something'){ ... }
?>
but the function does not work (it prints out the content, since the function get_component doesn't return a value, but prints it out directly).
Any ideas please?
Thank you guys!
Marco