Title: Making a new function
Last modified: August 18, 2016

---

# Making a new function

 *  [mischif](https://wordpress.org/support/users/mischif/)
 * (@mischif)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/making-a-new-function/)
 * You know how in the default theme there are some function calls such as `<?php
   get_header(); ?>`or `<?php get_footer(); ?>`, and they link to a specific webpage?
   Well I want to make a new one that will link to profile.php and be called `<?
   php get_profile(); ?>`, but I don’t know how. Can anyone help me?

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

 *  [Alex Cragg](https://wordpress.org/support/users/epicalex/)
 * (@epicalex)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/making-a-new-function/#post-562783)
 * get_header and get_footer are built in functions in wordpress, and call specific
   files, that all go to building up the page, but dont link to a specific webpage.
   to call a php that is not standard, you have to do it slightly differently, using
   the include function.
 * so for you, you would put
    `<?php include (TEMPLATEPATH . '/profile.php'); ?>`
   this functions exactly the same as get_footer etc.
 * if you want a webpage that is your profile, with a different page layout to normal,
   then maybe you are looking at [templates ](http://codex.wordpress.org/FAQ_Layout_and_Design#Templates)
   instead.
 *  Thread Starter [mischif](https://wordpress.org/support/users/mischif/)
 * (@mischif)
 * [18 years, 11 months ago](https://wordpress.org/support/topic/making-a-new-function/#post-562784)
 * Well I had seen the include tag, but I thought that there was a specific place
   that those tags and tag names are stored, and I could just add another one.

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

The topic ‘Making a new function’ is closed to new replies.

## Tags

 * [function](https://wordpress.org/support/topic-tag/function/)
 * [php](https://wordpress.org/support/topic-tag/php/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 2 participants
 * Last reply from: [mischif](https://wordpress.org/support/users/mischif/)
 * Last activity: [18 years, 11 months ago](https://wordpress.org/support/topic/making-a-new-function/#post-562784)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
