Embed a Page inside a Page

This should work when added to your functions.php:

In your page/post, use it like this:

[includepage id=59]


[includepage name=about]

Load a Different Header in WordPress

This little snippet can come in handy when you need to serve a different header on a per page basis.

All you need to do is create a new header file – header-yourfilename.phpand then put in some logic in your desired template file.

In my case I have a header file called header-home.php and in my homepage template I include the following at the top like so: