prismdesign 0 Report post Posted July 25, 2012 Hi Guys. I have got around this problem now using CSS and given my function an ID and just blocked it on the pages I want. But I would like to ask, why this did not work : add_action('pagelines_loop_before_post_content', 'title1'); function title1 () { is_page(12); ?> What We Are <?php }[/code] I obviously had it in the functions.php, etc etc and the function was functioning fine, but it pretty much ignored the fact I asked it to JUST be on page 12. Should this be possible or do the hooks override this? I have the <?php at the top of the document as well. Thanks Share this post Link to post Share on other sites
Simon 248 Report post Posted July 25, 2012 is_page() is a conditional you have to use it with IF WHILE etc.... The way you have it would just return true or false and carry on reguardless. [code]add_action('pagelines_loop_before_post_content', 'prism_title1'); function prism_title1() { if( ! is_page(12) ) return; ?> What We Are Share this post Link to post Share on other sites Create an account or sign in to comment You need to be a member in order to leave a comment Create an account Sign up for a new account in our community. It's easy! Register a new account Sign in Already have an account? Sign in here. Sign In Now Login via PageLines Signup To PageLines Sign in to follow this Followers 0