Title: Code96's Replies - page 6 | WordPress.org

---

# Code96

  [  ](https://wordpress.org/support/users/code96/)

 *   [Profile](https://wordpress.org/support/users/code96/)
 *   [Topics Started](https://wordpress.org/support/users/code96/topics/)
 *   [Replies Created](https://wordpress.org/support/users/code96/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/code96/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/code96/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/code96/engagements/)
 *   [Favorites](https://wordpress.org/support/users/code96/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 76 through 90 (of 107 total)

[←](https://wordpress.org/support/users/code96/replies/page/5/?output_format=md)
[1](https://wordpress.org/support/users/code96/replies/?output_format=md) [2](https://wordpress.org/support/users/code96/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/code96/replies/page/3/?output_format=md)…
[5](https://wordpress.org/support/users/code96/replies/page/5/?output_format=md)
6 [7](https://wordpress.org/support/users/code96/replies/page/7/?output_format=md)
[8](https://wordpress.org/support/users/code96/replies/page/8/?output_format=md)
[→](https://wordpress.org/support/users/code96/replies/page/7/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PHP Mobile Redirect] Endless loop](https://wordpress.org/support/topic/endless-loop-3/)
 *  Plugin Author [Code96](https://wordpress.org/support/users/code96/)
 * (@code96)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/endless-loop-3/#post-3771147)
 * I have noticed that there has been no recent activity. If you still have a problem,
   please open a new thread.
 * Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PHP Mobile Redirect] Endless loop](https://wordpress.org/support/topic/endless-loop-3/)
 *  Plugin Author [Code96](https://wordpress.org/support/users/code96/)
 * (@code96)
 * [12 years, 12 months ago](https://wordpress.org/support/topic/endless-loop-3/#post-3771119)
 * Have you set your mobile site URL in the settings?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PHP Mobile Redirect] Apply Redirect to a particular page only](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/)
 *  Plugin Author [Code96](https://wordpress.org/support/users/code96/)
 * (@code96)
 * [13 years ago](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/page/2/#post-3754890)
 * Thanks, glad we got it working.
 * Take care..
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PHP Mobile Redirect] Apply Redirect to a particular page only](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/)
 *  Plugin Author [Code96](https://wordpress.org/support/users/code96/)
 * (@code96)
 * [13 years ago](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/page/2/#post-3754888)
 * Or you can contact me through my site: [Code 96 WordPress Design](http://www.code96wd.com)
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PHP Mobile Redirect] Apply Redirect to a particular page only](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/)
 *  Plugin Author [Code96](https://wordpress.org/support/users/code96/)
 * (@code96)
 * [13 years ago](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/page/2/#post-3754887)
 * What are you using to access this. There is no way I can help you without knowing
   the URL. Do you have an email that I can contact you at, to pass the URL privately?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PHP Mobile Redirect] Apply Redirect to a particular page only](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/)
 *  Plugin Author [Code96](https://wordpress.org/support/users/code96/)
 * (@code96)
 * [13 years ago](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/page/2/#post-3754883)
 * is_single(591) – try that
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PHP Mobile Redirect] Apply Redirect to a particular page only](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/)
 *  Plugin Author [Code96](https://wordpress.org/support/users/code96/)
 * (@code96)
 * [13 years ago](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/page/2/#post-3754881)
 * Also, once you paste your code, highlight it and select the “code” button in 
   this editor. It will display as intended.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PHP Mobile Redirect] Apply Redirect to a particular page only](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/)
 *  Plugin Author [Code96](https://wordpress.org/support/users/code96/)
 * (@code96)
 * [13 years ago](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/page/2/#post-3754880)
 * Have you tried the is_single(591) yet?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PHP Mobile Redirect] Apply Redirect to a particular page only](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/)
 *  Plugin Author [Code96](https://wordpress.org/support/users/code96/)
 * (@code96)
 * [13 years ago](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/page/2/#post-3754876)
 * Please post the plugin functions.php code again. Thanks
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PHP Mobile Redirect] Apply Redirect to a particular page only](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/)
 *  Plugin Author [Code96](https://wordpress.org/support/users/code96/)
 * (@code96)
 * [13 years ago](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/#post-3754866)
 * Ok, so it sounds like you are actually trying to redirect from a post not a page?
   If so you need to replace:
 * `is_page(591)`
 * with
 * `is_single('591')`
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PHP Mobile Redirect] Apply Redirect to a particular page only](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/)
 *  Plugin Author [Code96](https://wordpress.org/support/users/code96/)
 * (@code96)
 * [13 years ago](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/#post-3754861)
 * There are also alternate methods to identify a single page, see below and give
   some of the other options a try:
 *     ```
       is_page();
       // When any single Page is being displayed.
   
       is_page(42);
       // When Page 42 (ID) is being displayed.
   
       is_page('Contact');
       // When the Page with a post_title of "Contact" is being displayed.
   
       is_page('about-me');
       // When the Page with a post_name (slug) of "about-me" is being displayed.
   
       is_page(array(42,'about-me','Contact'));
       // Returns true when the Pages displayed is either post ID 42, or post_name "about-me", or post_title "Contact".  Note: the array ability was added at Version 2.5.
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PHP Mobile Redirect] Apply Redirect to a particular page only](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/)
 *  Plugin Author [Code96](https://wordpress.org/support/users/code96/)
 * (@code96)
 * [13 years ago](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/#post-3754860)
 * I understand. No worries. The only thing I can think is that you have entered
   the incorrect page ID. I have tested the code I gave you on several test sites,
   and it functioned correctly. How did you go about finding your page ID?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PHP Mobile Redirect] Apply Redirect to a particular page only](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/)
 *  Plugin Author [Code96](https://wordpress.org/support/users/code96/)
 * (@code96)
 * [13 years ago](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/#post-3754855)
 * What is the URL to the page you are trying to redirect from?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PHP Mobile Redirect] Apply Redirect to a particular page only](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/)
 *  Plugin Author [Code96](https://wordpress.org/support/users/code96/)
 * (@code96)
 * [13 years ago](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/#post-3754849)
 * Where did you add the code, I posted above?
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[PHP Mobile Redirect] Apply Redirect to a particular page only](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/)
 *  Plugin Author [Code96](https://wordpress.org/support/users/code96/)
 * (@code96)
 * [13 years ago](https://wordpress.org/support/topic/apply-redirect-to-a-particular-page-only/#post-3754846)
 * Please post the entire code from the plugins functions.php

Viewing 15 replies - 76 through 90 (of 107 total)

[←](https://wordpress.org/support/users/code96/replies/page/5/?output_format=md)
[1](https://wordpress.org/support/users/code96/replies/?output_format=md) [2](https://wordpress.org/support/users/code96/replies/page/2/?output_format=md)
[3](https://wordpress.org/support/users/code96/replies/page/3/?output_format=md)…
[5](https://wordpress.org/support/users/code96/replies/page/5/?output_format=md)
6 [7](https://wordpress.org/support/users/code96/replies/page/7/?output_format=md)
[8](https://wordpress.org/support/users/code96/replies/page/8/?output_format=md)
[→](https://wordpress.org/support/users/code96/replies/page/7/?output_format=md)