2016-03-05, 03:13:18
(2016-03-04, 16:04:43)Bigin Wrote: ...Or generally, when the same rules apply to all child pages on entire template, you can see whether page has parent then show your component:
Code:if(!empty(get_parent(false))) {
// show component ...
}
It's that last one I need, thanks but it is giving me -
Fatal error: Can't use function return value in write context inĀ /var/sites...
Just to be clear I haveĀ
PHP Code:
<?php if(!empty(get_parent(false))) { get_component('tagline')}; ?>