Title: isMobile() Shortcode for WordPress
Author: Jairo Ochoa
Published: <strong>November 5, 2018</strong>
Last modified: August 30, 2025

---

Search plugins

![](https://ps.w.org/ismobile/assets/banner-772x250.jpg?rev=2967982)

![](https://ps.w.org/ismobile/assets/icon-256x256.png?rev=1969189)

# isMobile() Shortcode for WordPress

 By [Jairo Ochoa](https://profiles.wordpress.org/jairoochoa/)

[Download](https://downloads.wordpress.org/plugin/ismobile.zip)

 * [Details](https://srd.wordpress.org/plugins/ismobile/#description)
 * [Reviews](https://srd.wordpress.org/plugins/ismobile/#reviews)
 *  [Installation](https://srd.wordpress.org/plugins/ismobile/#installation)
 * [Development](https://srd.wordpress.org/plugins/ismobile/#developers)

 [Support](https://wordpress.org/support/plugin/ismobile/)

## Description

This plugin works with the open source [Mobile Detect Library](http://mobiledetect.net).
You can get further information on its website.

    ```
    [ismobile device='iphone' debug=true ] Your content [/ismobile]
    ```

#### Parameters

 1. _device_: Filters the device where you want the content to be shown. It could be
    more than one device, simply separate them with comma.
 2. _debug_: Shows Mobile Detect Library installed version. Also shows two arrays. 
    The first one contains the devices which the library detects and the second one
    contains the devices where you want to show the content.

#### Values

 * _android_: Shows content in Android devices.
 * _chrome_: Shows content on Chrome browser (Only works on mobile devices).
 * _desktop_: Shows content on a computer. Opposite to mobile option.
 * _ios_: Shows content in iOS devices.
 * _ipad_: Shows content on a iPad.
 * _iphone_: Shows content on a iPhone.
 * _mobile_: Shows content on a mobile device (includes tablets and cell phones).
   Opposite to desktop option.
 * _phone_: Shows content on a cell phone.
 * _safari_: Shows content on Safari browser (Only works on mobile devices).
 * _samsung_: Shows content on Samsung devices.
 * _tablet_: Shows content on a tablet.

## Installation

This section describes how to install the plugin and get it working.

 1. Upload the entire plugin folder to the /wp-content/plugins/ directory.
 2. Activate the plugin through the “Plugins” menu in WordPress.
 3. Go to Plugins -> isMobile() to read plugin’s help page.

#### Minimum Requirements

 * PHP version 7.4 or greater

## Reviews

![](https://secure.gravatar.com/avatar/bd32ec9cd108d4da374f25e02a072568ef20be167ffcc318d2ca620be1435ec0?
s=60&d=retro&r=g)

### 󠀁[Works great!](https://wordpress.org/support/topic/works-great-9695/)󠁿

 [apollosk](https://profiles.wordpress.org/apollosk/) October 8, 2025

Thank you for this useful plugin. Kudos to the developers!

![](https://secure.gravatar.com/avatar/c199b0f847ab4af840a1952c0ae7d4f6f73270b9fe5d9efc629baefc82e697d4?
s=60&d=retro&r=g)

### 󠀁[Super Sache!](https://wordpress.org/support/topic/super-sache-7/)󠁿

 [vegisto](https://profiles.wordpress.org/vegisto/) January 27, 2025

Wunderbar.Auch das mit dem DEBUG ist sehr hilfreich.Das erspart mir jetzt die Konfiguration
über CSS. Danke dafür.

![](https://secure.gravatar.com/avatar/53711ab6a50a2cad6700b40f6a5206c12b6f5fae9ced752977a11692d3321e29?
s=60&d=retro&r=g)

### 󠀁[Fantastic](https://wordpress.org/support/topic/fantastic-2610/)󠁿

 [Josh Willett](https://profiles.wordpress.org/joshwillett/) October 22, 2020

Works a treat to show information based on android or ios. thank you.

 [ Read all 3 reviews ](https://wordpress.org/support/plugin/ismobile/reviews/)

## Contributors & Developers

“isMobile() Shortcode for WordPress” is open source software. The following people
have contributed to this plugin.

Contributors

 *   [ Jairo Ochoa ](https://profiles.wordpress.org/jairoochoa/)
 *   [ dixitalmedia ](https://profiles.wordpress.org/dixitalmedia/)

“isMobile() Shortcode for WordPress” has been translated into 4 locales. Thank you
to [the translators](https://translate.wordpress.org/projects/wp-plugins/ismobile/contributors)
for their contributions.

[Translate “isMobile() Shortcode for WordPress” into your language.](https://translate.wordpress.org/projects/wp-plugins/ismobile)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/ismobile/), check out
the [SVN repository](https://plugins.svn.wordpress.org/ismobile/), or subscribe 
to the [development log](https://plugins.trac.wordpress.org/log/ismobile/) by [RSS](https://plugins.trac.wordpress.org/log/ismobile/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.1.2

 * Updated last WordPress version tested
 * Security fixes

#### 1.1.1

 * Mobile Detect Library downgrade to Version 2.8.41

#### 1.1

 * Updated last WordPress version tested
 * Mobile Detect Library updated to Version 3.74.0
 * Minimum PHP version: 7.4

#### 1.0.3

 * Updated last WordPress version tested

#### 1.0.2

 * Mobile Detect Library updated to Version 2.8.39

#### 1.0.1

 * Mobile Detect Library updated to Version 2.8.34

#### 1.0

 * Initial Release

## Meta

 *  Version **1.1.2**
 *  Last updated **8 months ago**
 *  Active installations **200+**
 *  WordPress version ** 4.5 or higher **
 *  Tested up to **6.8.5**
 *  PHP version ** 7.4 or higher **
 *  Languages
 * [Basque](https://eu.wordpress.org/plugins/ismobile/), [English (US)](https://wordpress.org/plugins/ismobile/),
   [Galician](https://gl.wordpress.org/plugins/ismobile/), [Spanish (Chile)](https://cl.wordpress.org/plugins/ismobile/),
   and [Spanish (Spain)](https://es.wordpress.org/plugins/ismobile/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/ismobile)
 * Tags
 * [desktop](https://srd.wordpress.org/plugins/tags/desktop/)[ipad](https://srd.wordpress.org/plugins/tags/ipad/)
   [iphone](https://srd.wordpress.org/plugins/tags/iphone/)[mobile](https://srd.wordpress.org/plugins/tags/mobile/)
   [tablet](https://srd.wordpress.org/plugins/tags/tablet/)
 *  [Advanced View](https://srd.wordpress.org/plugins/ismobile/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  3 5-star reviews     ](https://wordpress.org/support/plugin/ismobile/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/ismobile/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/ismobile/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/ismobile/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/ismobile/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/ismobile/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/ismobile/reviews/)

## Contributors

 *   [ Jairo Ochoa ](https://profiles.wordpress.org/jairoochoa/)
 *   [ dixitalmedia ](https://profiles.wordpress.org/dixitalmedia/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/ismobile/)