[Resolved] proper hook for "is_page"
Hello: I am trying to get some conditional code to work on my site using 2011 theme. I am trying to use the “is_page” and “is_single” statements to make the code conditional. I am doing functions in the “functions.php” file. when I try and have code be conditonal every part of the code works except for the “ia_page” part; for some reason it cannot recognize what page it is on. I think this may be caused by the hook I am running the function on. The hook I am using is ‘after_setup_theme’. Is there a better hook to use when trying to have code execute based on an “is_page” statement?
- The topic ‘[Resolved] proper hook for "is_page"’ is closed to new replies.