19 | 19 | A user can choose to have a default page template be set for any page that is created. This function takes that into account, checks that no page template has been set for any individual page, and if not, sets the template for the one they specified in the options area. Because locate_template() returns the filename string, it gets outputted at the very end of the page, right before the closing </body> tag. Now load_template() can get around this, but then limits the end user to whatever templatepath I specify. locate_template() would be preferred because it is more forward and would allow for the end user to create their own version of the template and use it throughout their site. |