• please help the supernoob. I created a function in the functions.php file of my theme and i created a new blank page to call it from. When place the function call, it just renders it as html.

    I have tried various forms but but its rendering them all. Ive read a bit and some people suggest installing EXEC-PHP which seems like an inefficient way to run the function.

    It also occurs to me that since this is a new page then its probably really just a database entry(a post) and maybe i need to make a new template file.

    What is the fastest most efficient way to call a function on a single page?

    Thanks

Viewing 1 replies (of 1 total)
  • Thread Starter dggriffi

    (@dggriffi)

    The solution for me was to take the javascript and simply write it into a file (blahblah.js) which i en-queued from the header.php. I also had top enque jquery as well in the header.

Viewing 1 replies (of 1 total)
  • The topic ‘functions.php called from a page’ is closed to new replies.