uniquelylost
Forum Replies Created
-
Forum: Plugins
In reply to: [Equivalent Mobile Redirect] No. of URLsMarking as resolved
Forum: Plugins
In reply to: [Equivalent Mobile Redirect] No. of URLscleaned up a bit and added a checkbox to enable/disable the Homepage redirect
EM-RedirectForum: Plugins
In reply to: [Equivalent Mobile Redirect] No. of URLs@kerp77 here is an alternative version of the plugin for a homepage without a name and with 30 possible redirects… Make sure you fill in the Homepage URL box because it is required…
EM-RedirectForum: Plugins
In reply to: [Equivalent Mobile Redirect] No. of URLsI can email you a copy with more available redirects or tell you where to add them in the code?
And yeah the pages currently do need a title in order to redirect them, in the next few days I’ll add a option in the settings page for the homepage in case it doesn’t have a title.
If you are going to have a full blog on your main site and mobile site I would consider just making the main site responsive, this plugin was more made to redirect pages although it will redirect single posts too.
Forum: Plugins
In reply to: [Equivalent Mobile Redirect] No. of URLsHi @kerp777
10 URLs is what’s currently coded but it is possible to add more… about how many are you looking to have?Forum: Hacks
In reply to: is_page theme options not workingAfter much trial and error I wonder is it even possible to use multiple is_page in this manner? If so it seems my logic is off for the ‘function emr_single_page_only()’.
Forum: Hacks
In reply to: is_page theme options not workingThanks for the help @oz
Okay so I can get the first pagetitle_url to work but if I try to add additional ones like pagetitle_url22 they don’t work… I can confirm that the values are getting saved in the db… here’s an example of my code-
function emr_single_page_only(){ global $emr_options; if (is_page(get_option('pagetitle_url'))) { emr_mobile_redirect(); } elseif (is_page(get_option('pagetitle_url22'))) { emr_mobile_redirect2(); } } add_action('get_header','emr_single_page_only'); function emr_mobile_redirect(){ global $emr_options; if ($emr_options['enabled'] == true) { $detect = new Mobile_Detect(); if ($detect->isTablet() && $emr_options['tablet'] == true) { $detect = "false"; } elseif ($detect->isMobile()) { header('Location: ' . $emr_options['mobile_url']); exit; } } }
Again, thanks in advance for any suggestions.