Skip to main content
added 46 characters in body
Source Link
Scott
  • 12.3k
  • 15
  • 68
  • 99

If I visit a page on my WordPress site, WP goes and determines what template file it should use based on the template hierarchy.

If I'm doing some logic checking in the hook init and say my conditions are met, how do I tell WordPress to load a template file of my choosing, not the one WordPress would normally dish up?

If I visit a page on my WordPress site, WP goes and determines what template file it should use based on the template hierarchy.

If I'm doing some logic checking in the hook init and say my conditions are met, how do I tell WordPress to load a template file of my choosing?

If I visit a page on my WordPress site, WP goes and determines what template file it should use based on the template hierarchy.

If I'm doing some logic checking in the hook init and say my conditions are met, how do I tell WordPress to load a template file of my choosing, not the one WordPress would normally dish up?

Source Link
Scott
  • 12.3k
  • 15
  • 68
  • 99

Load different template file when condition met?

If I visit a page on my WordPress site, WP goes and determines what template file it should use based on the template hierarchy.

If I'm doing some logic checking in the hook init and say my conditions are met, how do I tell WordPress to load a template file of my choosing?