Title: php-script on static page?
Last modified: August 18, 2016

---

# php-script on static page?

 *  Resolved [LostInNetwork](https://wordpress.org/support/users/lostinnetwork/)
 * (@lostinnetwork)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/php-script-on-static-page/)
 * I need to create a page with an event calendar on it.
 * I have created file.php in my themes directory. I have also edited my themes 
   header.php to include a link (in the page list) to this new file.php. I have 
   typed
 * < ? php function_call() ? >
 * in the file.php.
 * When I click on the link to open this page, I just get an empry page with error
   messages complaining about “undefined functions”.
 * How do I make the functions to work?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Samuel B](https://wordpress.org/support/users/samboll/)
 * (@samboll)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/php-script-on-static-page/#post-525335)
 * Download one of the events calendar plugins and see how they do it.
    [http://codex.wordpress.org/Plugins/Calendar_Event](http://codex.wordpress.org/Plugins/Calendar_Event)
 *  [davidchait](https://wordpress.org/support/users/davidchait/)
 * (@davidchait)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/php-script-on-static-page/#post-525350)
 * You can use something like my CG-QuickPHP if you want to create a WP Page that
   calls a single PHP function — it’s good for that (minimalist).
 * Also read up on using custom templates, if you want more functional, customized
   php code for a given page.
 * -d
 *  Thread Starter [LostInNetwork](https://wordpress.org/support/users/lostinnetwork/)
 * (@lostinnetwork)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/php-script-on-static-page/#post-525353)
 * Thanks.
 * I somehow missed the instructions to choose the page template in the create page
   dialog.
 * Once I understood that I don’t need to edit the header.php or anything, but just
   create a template php-file in the theme directory and choose the template in 
   the editor, the problem was solved.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘php-script on static page?’ is closed to new replies.

 * 3 replies
 * 3 participants
 * Last reply from: [LostInNetwork](https://wordpress.org/support/users/lostinnetwork/)
 * Last activity: [19 years, 5 months ago](https://wordpress.org/support/topic/php-script-on-static-page/#post-525353)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
