2020-05-01 / 3582阅 / 悠然
Retrieve path of single template in current or parent template. Applies to single Posts, single Attachments, and single custom post types.
The hierarchy for this template looks like:
An example of this is:
The template hierarchy and template path are filterable via the ‘$type_template_hierarchy’ and ‘$type_template’ dynamic hooks, where $type is ‘single’.
(string) Full path to single template file.