Im not sure if my title is correct but here’s my scenario.
I have this option where user can check page in a panel using checkbox.
not im displaying it in using
<?php if($page->is_featured() == '1') : ?>
it works fine if i want to display its own template.
Now i trying to display it on other templates. how to do that. i tried
<?php if(page('courier')->is_featured() == '1') : ?>
but its give me error
Call to a member function is_a_feature_course() on boolean