What is the difference between single.php and content.php
-
Hello, first of all, sorry for my english.
I’ve searched the forums in English and Spanish, the internet and I’ve also reviewed several themes( cotango , twentyfourteen , twentythirteen , twentytwelve , thebootstrap ) but I don’t understand the difference between single.php and content.php .
In the three themes index.php use the function:
< php get_template_part ( 'content' , get_post_format ()); ? >
In The Bootstrap changes a little but it does the same.
I understand that this function calls a file to load the content of a single post, sometimes differentiating between types of posts.
If this is so, what is the function of single.php file? file which is present in every themes I’ve revised; according I’ve read in the documentation, single.php is used to display the content of a post ( what he does content.php ).
Moreover, in all the reviewed themes, single.php has the functionget_template_part
used to load another template,content-postformat.php
, and I can’t find from where they call the single.php file in any of the themes.If someone could explain the difference I would greatly appreciate it .
And if noone can understand what I can say, please, erase the question.
Thanks and sorry.
- The topic ‘What is the difference between single.php and content.php’ is closed to new replies.