Title: [Plugin: Mobile Smart] Template functions
Last modified: August 20, 2016

---

# [Plugin: Mobile Smart] Template functions

 *  [julius](https://wordpress.org/support/users/julius/)
 * (@julius)
 * [14 years, 11 months ago](https://wordpress.org/support/topic/plugin-mobile-smart-template-functions/)
 * In the plugin description there is this
    “Template functions to help determine
   which tier of mobile device (touch/smartphone/other) is viewing your site, to
   allow conditional content inclusion.”
 * How can show in template (ex. single.php template) different contents for smartphone
   mobiles an NOT smartphones mobiles?
    Great plugin, Thanks
 * [http://wordpress.org/extend/plugins/mobile-smart/](http://wordpress.org/extend/plugins/mobile-smart/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [dolby_uk](https://wordpress.org/support/users/dolby_uk/)
 * (@dolby_uk)
 * [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-mobile-smart-template-functions/#post-2173824)
 * You will need to switch based on the tier. So you can use something like:
 * global $mobile_smart;
 * if ($mobile_smart->getCurrentDeviceTier() == MOBILE_DEVICE_TIER_SMARTPHONE)
    {//
   display main content the_content(); } else{ // display some other content – perhaps
   stored in custom meta field? }

Viewing 1 replies (of 1 total)

The topic ‘[Plugin: Mobile Smart] Template functions’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/mobile-smart_000000.svg)
 * [Mobile Smart](https://wordpress.org/plugins/mobile-smart/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/mobile-smart/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/mobile-smart/)
 * [Active Topics](https://wordpress.org/support/plugin/mobile-smart/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/mobile-smart/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/mobile-smart/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [dolby_uk](https://wordpress.org/support/users/dolby_uk/)
 * Last activity: [14 years, 4 months ago](https://wordpress.org/support/topic/plugin-mobile-smart-template-functions/#post-2173824)
 * Status: not resolved