[wp-testers] page template
Michael E. Hancock
mhancock at us.net
Mon Mar 17 20:48:20 GMT 2008
From: "Kirk M" <kmb42vt at gmail.com>
> Kristin Andrus Pishdadi wrote:
>> Strange,
>>
>> I downloaded the theme you mentioned to test because it was not showing
>> up.
>>
>> It worked,
>>
>> then i switched back to my theme and the page templates showed up.
>>
>> It seems like it's not looking for them on the fly, but only when you
>> activate the theme, so if you make a page template you have to
>> re-activate
>> your theme to get it to work ?
>>
>>
>>
> I hate to say this but that's a very interesting question. Up to now I've
> never needed to come up with my own page template so I really couldn't
> say. Perhaps someone else here might be better able to answer if WP
> actually looks for new page templates on the fly. I don't think it would
> since that would mean having some sort constant check going on to check of
> the status of your theme for any changed files. Something akin to a
> built-in cron job for checking theme templates. Re-activating your theme
> for any new page templates to be picked up is probably the best bet for
> now.
Taken from http://codex.wordpress.org/Pages#Page_Templates
NOTE: In order to access the Page Template selector, there must be at least
one custom Page Template available in the active theme
Regards.
Michael
More information about the wp-testers
mailing list