Make WordPress Core

Changes between Initial Version and Version 1 of Ticket #18151, comment 5


Ignore:
Timestamp:
07/18/2011 11:38:00 AM (14 years ago)
Author:
griffinjt
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18151, comment 5

    initial v1  
    1919A 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.
    2020
    21 I hope this explains what I am talkin about. If there is another way besides template_redirect, then by all means let me know...but the way I see it, this is a pretty good way of doing it.
     21I hope this explains what I am talking about. If there is another way besides template_redirect, then by all means let me know...but the way I see it, this is a pretty good way of doing it.