• 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)
  • 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 instead.

    Thread Starter mischif

    (@mischif)

    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.