Say for example you have a directory like this:
theme
- subfolder
- template.php
content-job-listing.php
If I try and call get_template_part like so get_template_part('content', 'job-listing')
from the file template.php (note this is just a generic name not that actual name I’m using) it returns NULL.
Similarly, if I use get_template_part('../content', 'job-listing')
this also fails to return the template. However, the first one works fine if both are in the same directory.
get_template_part() does not work if you call it when you are in a subfolder of a t