So instead of creating a theme for it i ended up using the template_redirect
with an if statement to check the url for a certain thing.
function page_redirect() {
if ($_SERVER['REQUEST_URI'] == $home . '/other-sites') {
require(TEMPLATEPATH . '/includes/other-sites.php');
}
if ($_SERVER['REQUEST_URI'] == $home . 'login') {
require(TEMPLATEPATH . '/includes/login.php');
}
}
add_action('template_redirect', 'page_redirect');
Simply all this does is check to see if the requested URI is wpsite.com/other-sites
or wpsite.com/login
and if this is true then load this template instead. Since i am using some WordPress features though in these custom templates i have also made a check for the title since WordPress will return a page not found title.
Related Posts:
- Create mobile site with same content just different theme
- Shared Content but “Updatable” Through the Main Site
- How to make wp-signup.php a 1-step process [closed]
- Is there a way to separate a site inside a network (multisite) into its own wp site?
- Use another author.php if different multisite subsite?
- Can is_page and is_front_page both be true?
- Handling single.php in Multisite
- Multiple devices wordpress website
- different image for mobile template block theme
- restore_current_blog() vs switch_to_blog()
- How to get blog name, when using WordPress Multisite
- Which asset URLs are acceptable in a “vanilla” MU install?
- Using MAMP and Xip.io to view a WordPress Multisite on a local network
- REST API for Multisite
- How can I display all Multisite blogs where this user is administrator?
- Multisite: use media from one site vs. copying the same media to all language sites?
- Create unique robots.txt for every site on multisite-installation
- Nginx rules for subdomain multisite install (Bedrock)
- “Upgrade Network” error: stuck with SSL certificate verification
- when using add_user_to_blog getting error “Call to undefined function get_userdata”
- Restrict the user access in multi site for non-assigned blogs
- Getting an ERROR: Cookies are blocked error when logging in to a site on a different domain?
- display merged posts from multisite and sort by latest date
- WordPress 3.2(Multisite) – How to add custom user meta fields to signup form?
- Force Uploads Use Yearmonth to off (0) for all existing sites in Multisites
- WordPress Multisite – Multiple Subdirectories
- Images uploading to wrong directory after changing to multisite
- Why are images uploaded to main domain, when using multisite with different domains?
- Subdomain login problems
- Importing Multiple DB to one MU database
- How to Redirect login User with Mapped Domiain Primary blog Url to Original Sub-site Url
- Determining the compatibility of Settings API & Multisite
- Downgrading a WP3.3.1 Network Install
- Update User Role Across Network when Main Site User is Updated
- Shared User Tables on 2 WordPress Sites; “Main” Site and “Discuss” using P2?
- Get the User ID Who Owns a Given Blog ID in Multisite
- Create custom role, multisite, add users/sites?
- https redirect hell (adding www)
- How to disable W3 Total Cache “Performance” menu under multisite? [closed]
- Redirect subdomain in Multisite installation?
- Will revisions be retained when converting to a multi-site?
- How to create sub site in wordpress multisite programmatically?
- Multisite on localhost using xampp
- wp-config dynamic hostname in WP_HOME and WP_SITEURL
- Include only a domain path in multisite Network
- Jetpack API for WordPress Network
- WP doesn’t remove uploads from folder when removed from “Media Library”?
- How does WordPress determine which multisite the user is on from the URL?
- How can I use WP_Site_Query to find a blog by blog name?
- Limit entries number on network/sites.php
- Multi-language site on different domains
- How can I use separate domains for single pages?
- WordPress Multisite logout conflict
- SEO implications of assigning a new domain to a multisite subdomain [closed]
- How can I add custom meta on signup page and pass along to be used after blog activation?
- Flush Rewrite Rules when new site is created on network
- Conditional Image Sizes for Use via Theme Customizer Upload Only
- why there is a large file named core in wpmu’s directory?
- WordPress multi-site, developing locally and syncing live changes
- wp_get_attachment_image_src on multisite
- Problem with parked domain for my mutisite
- Error : Cookies are blocked or not supported by your browser
- How To Run Multiple Multi-Site Networks On Same Box [closed]
- Changed sub-site to its own domain trigger 302 redirects for all page links
- Multiple Websites that share some content types and not others
- Solving a get_user_meta() problem in Multisite
- How to use the sunrise.php script for Multisite network domain mapping?
- Page Builders and WP Multisite
- How to pull data from child installation to parent theme
- Which is the correct way to migrate content from single WP to WP multisite
- How to have one installation at blog.example.com and multiple blogs in sub folders such as blog.example.com/userA?
- Is a multisite install what I need?
- Infamous admin login redirect
- Running hundreds of WP in multisite
- get_site_option / update_site_option – the main site and sub sites do not share the same storage
- Create link preview for theme wordpress
- Bitnami multisite change URL of secondary blog
- Number of total comment does not tally with the number of comment?
- Domain not redirected correctly with WordPress Multisite
- Subsites in Multisite throw 404 in wp-admin
- WordPress theme to support single website but with 3 sections for 3 languages
- Can assign a new domain to a site in a multisite?
- Possible to have duplicate usernames on different two multisites
- Main site media are accessible in subsite domain
- Update siteurl and home in multisite subsites to https
- WordPress multi-domain with multiple sites with multiple languages
- Including non-wordpress pages within a single multisite domain
- Domain level problem for multisite?
- How can I import posts into different wordpress multisites at once?
- Redirect www.mainsite.com/subsite/wp-login to www.mainsite.com/wp-login
- Activation of new Registered site fails on multisite
- Migrate site from WordPress multisite to another WordPress multisite
- How to login a user with wp_set_auth_cookie on a specific blog within a multisite environment
- How does adding custom meta to signup form work?
- Can’t un-archive site after upgrading to WordPress 3.8
- How to handle responsive and non responsive websites in one WordPress Theme?
- Is it possible to put a site other than #1 as a Multisite top-level domain?
- Should I go for Multisite or separate WP Installation?
- Swap domains of two sites with each other in multisite
- Many big issues in the website, WP_Debug not showing