2016-03-05, 07:19:34
(2016-03-05, 03:28:23)Bigin Wrote: try this, that should do the trick:
Code:$parent = get_parent(false);
if(!empty($parent)) {
// show component ...
}
For some reason I get the component on all pages with that. I can check the variable is empty with print $parent (and it is). Using
PHP Code:
<?php $parent = get_parent(false);
if(!empty($parent)) {get_component('disqus');} ?>