Habitualy, the WordPress template hierarchy for posts, uses a simple descendant decision tree for choosing which single_template.php
file is going to be used for showing a single post. This decision tree is quite usefull so that, simply creating a .php
file called like single, single-posttype, etc., it’s possible to control very accurately which template will be used for showing data.
However, in contrast of pages that each one can have its own template, ie, they have a very flexible decision rules, choosing the templates for posts is ruled by criterias more restrictive based in sets of elements Continue reading…