If you are not sure if the website you would like to visit is secure, you can verify it here. Enter the website address of the page and see parts of its content and the thumbnail images on this site. None (if any) dangerous scripts on the referenced page will be executed. Additionally, if the selected site contains subpages, you can verify it (review) in batches containing 5 pages.
favicon.ico: markjaquith.wordpress.com/2014/02/19/template_redirect-is-not-for-loading-templates - Dont use template_redirect to .

site address: markjaquith.wordpress.com/2014/02/19/template_redirect-is-not-for-loading-templates/ redirected to: markjaquith.wordpress.com/2014/02/19/template_redirect-is-not-for-loading-templates

site title: Dont use template_redirect to load an alternative template file Mark on WordPress

Our opinion (on Monday 05 October 2026 6:12:35 UTC):

GREEN status (no comments) - no comments
After content analysis of this website we propose the following hashtags:



Meta tags:
description=template_redirect is a popular WordPress hook, for good reason. When it runs, WordPress has made its main query. All objects have been instantiated, but no output has been sent to the browser. It is your last stop to hook in and redirect the user somewhere else, and the best place to do so if you…;

Headings (most frequently used words):

on, wordpress, mark, about, don, use, template_redirect, to, load, an, alternative, template, file, post, navigation, thoughts, share, this, related, leave, comment, cancel, reply,

Text of the page (most frequently used words):
wordpress (15), this (9), mark (9), for (8), the (6), #template_redirect (5), code (4), my_callback (4), file (4), and (4), alternative (4), template (4), com (3), other (3), jaquith (3), share (3), but (3), load (3), hook (3), post (2), content (2), log (2), sign (2), subscribed (2), subscribe (2), have (2), comment (2), blog (2), anything (2), loading (2), like (2), facebook (2), opens (2), new (2), window (2), template_ (2), include (2), redirect (2), with (2), template_include (2), function (2), original_template (2), some_condition (2), return (2), some_path (2), some (2), custom (2), php (2), else (2), that (2), lead (2), you (2), good (2), has (2), all (2), objects (2), been (2), don (2), use (2), services (2), menu (2), collapse, bar, manage, subscriptions, view, reader, report, copy, shortlink, privacy, already, account, now, join, 053, subscribers, reblog, create, website, leave, cancel, reply, ask, six, apart, suspends, movable, type, open, source, project, navigation, february, 2014, related, includes, redirects, same, effect, doesn, interfere, plugin, theme, distinction, should, easy, remember, add_filter, problem, hooked, isn, going, run, can, break, sites, very, odd, bugs, want, there, filter, after, add_action, exit, see, lot, popular, reason, when, runs, made, its, main, query, instantiated, output, sent, browser, your, last, stop, user, somewhere, best, place, need, full, knowledge, queried, what, not, twitter, consulting, tempus, fugit, things, digital, hub, links, online, presences, markjaquith, provider, personal, publishing, platform, developer, freelance, about, home, close, search, thoughts, primary, skip,


Text of the page (random words):
don t use template_redirect to load an alternative template file mark on wordpress skip to content primary menu mark on wordpress thoughts on wordpress search for close menu home wordpress services about hi i m mark jaquith a provider of freelance wordpress services and a lead developer of the wordpress personal publishing platform this is my blog for all things wordpress go to my digital hub at markjaquith com for links to my other online presences mark jaquith tempus fugit mark on wordpress wordpress consulting twitter don t use template_redirect to load an alternative template file template_redirect is a popular wordpress hook for good reason when it runs wordpress has made its main query all objects have been instantiated but no output has been sent to the browser it is your last stop to hook in and redirect the user somewhere else and the best place to do so if you need full knowledge of the queried objects but what it is not good for is loading an alternative template i see code like this a lot add_action template_redirect my_callback function my_callback if some_condition include some_path some custom file php exit the problem with this code is that anything hooked in to template_redirect after this code isn t going to run this can break sites and lead to very odd bugs if you want to load an alternative template there s a filter hook for that template_include add_filter template_include my_callback function my_callback original_template if some_condition return some_path some custom file php else return original_template same effect but doesn t interfere with other plugin or theme code this distinction should be easy to remember template_ redirect is for redirects template_ include is for includes share this share on x opens in new window x share on facebook opens in new window facebook like loading related february 19 2014 mark jaquith post navigation six apart suspends movable type open source project ask mark anything leave a comment cancel reply δ create a website or blog at wordpress com comment reblog subscribe subscribed mark on wordpress join 1 053 other subscribers sign me up already have a wordpress com account log in now privacy mark on wordpress subscribe subscribed sign up log in copy shortlink report this content view post in reader manage subscriptions collapse this bar d
Thumbnail images (randomly selected): * Images may be subject to copyright.GREEN status (no comments)
  • headshot of Mark Jaquith
  • Follow me on Twitter!
    Click here to view my Twi...

Verified site has: 8 subpage(s). Do you want to verify them? Verify pages:

1-5 6-8


The site also has references to the 2 subdomain(s)

  wordpress.com  Verify   subscribe.wordpress.com  Verify


Top 50 hastags from of all verified websites.

Supplementary Information (add-on for SEO geeks)*- See more on header.verify-www.com

Header

HTTP/1.1 301 Moved Permanently
Server nginx
Date Mon, 05 Oct 2026 06:12:35 GMT
Content-Type text/html
Content-Length 162
Connection keep-alive
Location htt????/markjaquith.wordpress.com/2014/02/19/template_redirect-is-not-for-loading-templates/
Alt-Svc clear
Server-Timing a8c-cdn, dc;desc=cdg, cache;desc=BYPASS;dur=1.0
HTTP/2 200
server nginx
date Mon, 05 Oct 2026 06:12:35 GMT
content-type text/html; charset=UTF-8
vary Accept-Encoding
x-hacker Want root? Visit join.a8c.com/hacker and mention this header.
host-header WordPress.com
link <htt????/public-api.wordpress.com/wp-json/?rest_route=/sites/markjaquith.wordpress.com>; rel= htt????/api.w.org/
vary accept, content-type, cookie
x-pingback htt????/markjaquith.wordpress.com/xmlrpc.php
link <htt????/wp.me/p56-1fP>; rel=shortlink
content-encoding gzip
x-ac 17.cdg _dca STALE
alt-svc clear
strict-transport-security max-age=31536000
server-timing a8c-cdn, dc;desc=cdg, cache;desc=STALE;dur=3.0

Meta Tags

title="Dont use template_redirect to load an alternative template file Mark on WordPress"
charset="UTF-8"
name="viewport" content="width=device-width, initial-scale=1"
name="robots" content="max-image-preview:large"
name="generator" content="WordPress.com"
property="og:type" content="article"
property="og:title" content="Don’t use template_redirect to load an alternative template file"
property="og:url" content="htt????/markjaquith.wordpress.com/2014/02/19/template_redirect-is-not-for-loading-templates/"
property="og:description" content="template_redirect is a popular WordPress hook, for good reason. When it runs, WordPress has made its main query. All objects have been instantiated, but no output has been sent to the browser. It i…"
property="article:published_time" content="2014-02-19T15:19:09+00:00"
property="article:modified_time" content="2014-02-19T15:19:09+00:00"
property="og:site_name" content="Mark on WordPress"
property="og:image" content="htt????/markjaquith.wordpress.com/wp-content/uploads/2018/02/cropped-headshot13.jpg?w=200"
property="og:image:width" content="200"
property="og:image:height" content="200"
property="og:image:alt" content=""
property="og:locale" content="en_US"
property="fb:app_id" content="249643311490"
property="article:publisher" content="htt????/www.facebook.com/WordPresscom"
name="twitter:creator" content="@markjaquith"
name="twitter:site" content="@markjaquith"
name="twitter:text:title" content="Don’t use template_redirect to load an alternative template file"
name="twitter:image" content="htt????/markjaquith.wordpress.com/wp-content/uploads/2018/02/cropped-headshot13.jpg?w=240"
name="twitter:card" content="summary"
name="description" content="template_redirect is a popular WordPress hook, for good reason. When it runs, WordPress has made its main query. All objects have been instantiated, but no output has been sent to the browser. It is your last stop to hook in and redirect the user somewhere else, and the best place to do so if you…"
name="msapplication-TileImage" content="htt????/markjaquith.wordpress.com/wp-content/uploads/2018/02/cropped-headshot13.jpg?w=270"
id="bilmur" property="bilmur:data" content="" data-provider="wordpress.com" data-service="simple" data-site-tz="America/New_York" data-custom-props='{"enq_jquery":"1","logged_in":"0","wptheme":"pub\/isola","wptheme_is_block":"0"}'

Load Info

page size83287
load time (s)0.044381
redirect count1
speed download521090
server IP 192.0.78.12
* all occurrences of the string "http://" have been changed to "htt???/"