conditional functions?
-
Hello: I am using twenty eleven child theme on latest version of wordpress. I am pretty experienced in doing custom coding but all of my experience comes from using the “thesis” theme which works differently from most other themes. Anyway; I am trying to have a function only run in certain pages. I wrote the function and put it in my “functions.php” file and it worked but made change to the whole site. But when I added a “is_page” statement to try and restrict to one page only the code stopped working. Is this not doable in twentyeleven? Or is there some other way to conditionally run functions on some pages and not others?
Please let me know,
Gerard
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘conditional functions?’ is closed to new replies.