Quantcast
Channel: WordPress.org Forums » All Topics
Viewing all articles
Browse latest Browse all 130709

single-[format-name].php or content-[format-name].php for Blog Post Pages?

$
0
0

Replies: 1

Hello,

I am currently building a Theme from scratch and starting creating my WordPress Format Templates. Formats such as; ‘Gallery’, ‘Aside’ and ‘Quote’ etc.

Whilst reading through the WordPress Codex, I noticed that there were 2 different file extensions being used to achieve the same goal:

content-gallery.php
single-gallery.php

Which is the correct one? My assumption would be single-gallery.php as to create the template for the Blog Post Page and then you can call content-gallery.php within the single-gallery.php if you so wished. Am I going in the right direction?

Any help, on this matter, would be appreciated.

Thanks.

Craig


Viewing all articles
Browse latest Browse all 130709

Trending Articles