Loading a WordPress Page from a WordPress PHP Page Template File
-
I have an existing page created in WordPress. This page has its own PHP page template file. When someone visits this page from a mobile device, I want the correct page to be served to the visitor. I am doing this now using the header method in PHP. Since WordPress has already loaded, is there some PHP method to simply load the desired WordPress page without using the header method?
<?php if(wp_is_mobile()) { header("Location: http://yn7.c6f.myftpupload.com/mobile-splash/"); exit(); } else { header("Location: http://yn7.c6f.myftpupload.com/desktop-home/"); exit(); }
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
The topic ‘Loading a WordPress Page from a WordPress PHP Page Template File’ is closed to new replies.