Load Custom Single Post Template For Specific Post Format in Genesis

This tutorial enables you to change the standard single post template when using a specific post format in Genesis.

This example assumes you’ve selected the gallery post format and load a different template which you upload to your child themes root directory.

post-formats

There’s 2 steps involved:

If your theme doesn’t already include posts formats, see this post about about how to add them in Genesis first.

Once you’ve confirmed your theme includes post formats, you can then follow these 2 simple steps.

1. Firstly, paste the following PHP code at the end of your child themes functions.php file:


Comments

2 responses to “Load Custom Single Post Template For Specific Post Format in Genesis”

  1. Aimee Devlin Avatar
    Aimee Devlin

    Hi Brad! The code in step 2 is missing. Cheers!

    1. Brad Dalton Avatar
      Brad Dalton

      Updated. 8 year old bug in WordPress which i reported 2 years ago. Can’t use a opening php tag in the WordPress editor even if you wrap it in code or pre tags. Thanks for letting me know. I added the code to a Gist and will let them host it.

Leave a Reply

Join 5000+ Followers

Get The Latest Free & Premium Tutorials Delivered The Second They’re Published.