When including files within your WordPress theme use locate_template() to allow them to be overridden by child themes.

locate_template() will search for the file within STYLESHEETPATH and TEMPLATEPATH, returning the path as a string if it exists.

WordPress

Leave a Reply

Your email address will not be published. Required fields are marked *