I have 5 custom post types that I'd like to use for a particular custom single.php template (single-careers.php) rather than creating 5 separate single templates. Is this possible to do?
Thanks
I have 5 custom post types that I'd like to use for a particular custom single.php template (single-careers.php) rather than creating 5 separate single templates. Is this possible to do?
Thanks
I don't think there's a way, unless you want to use single.php for it, and maybe move what you use single.php for somewhere else. You can read more about teamplate hierarchy here.
If you just don't want to replicate the code, you can always make a single-POST_TYPE.php for each one, and have those include a common template with the get_template_part function.