Title: get_template_part(&#8216;header&#8217;) vs get_header
Last modified: August 19, 2016

---

# get_template_part(‘header’) vs get_header

 *  [knowltonsteve](https://wordpress.org/support/users/knowltonsteve/)
 * (@knowltonsteve)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/get_template_partheader-vs-get_header/)
 * <?php get_template_part(‘header’); ?>
    vs <?php get_header(); ?>
 * any difference? does get_header make extra calls? seems to works for me, and 
   I like standardizing things 🙂

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

 *  Thread Starter [knowltonsteve](https://wordpress.org/support/users/knowltonsteve/)
 * (@knowltonsteve)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/get_template_partheader-vs-get_header/#post-1561909)
 * doesnt seem to be anything fancy… minus the defult fallback, which i dont care
   about
 * function get_header() {
    if ( file_exists( TEMPLATEPATH . ‘/header.php’) ) load_template(
   TEMPLATEPATH . ‘/header.php’); else load_template( ABSPATH . ‘wp-content/themes/
   default/header.php’); }
 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [15 years, 10 months ago](https://wordpress.org/support/topic/get_template_partheader-vs-get_header/#post-1561917)
 * Not really at lot of difference, get_template_part does an include and load_template
   does a require.
 * But `get_header();` would be the standard way to do it!

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

The topic ‘get_template_part(‘header’) vs get_header’ is closed to new replies.

 * 2 replies
 * 2 participants
 * Last reply from: [MichaelH](https://wordpress.org/support/users/michaelh/)
 * Last activity: [15 years, 10 months ago](https://wordpress.org/support/topic/get_template_partheader-vs-get_header/#post-1561917)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
