
內容簡介
[ismobile device=’iphone’ debug=true ] 您的內容 [/ismobile]
參數
device: 篩選您希望顯示內容的裝置。可以選擇多個裝置,只需用逗號分隔。
debug: 顯示 Mobile Detect Library 安裝版本。同時顯示兩個陣列。第一個包含該函式庫偵測到的裝置,第二個包含您希望顯示內容的裝置。
值
android: 在 Android 裝置上顯示內容。
chrome: 在 Chrome 瀏覽器上顯示內容(僅適用於移動裝置)。
desktop: 在電腦上顯示內容。與移動裝置選項相反。
ios: 在 iOS 裝置上顯示內容。
ipad: 在 iPad 上顯示內容。
iphone: 在 iPhone 上顯示內容。
mobile: 在行動裝置上顯示內容(包括平板電腦和手機)。與桌面選項相反。
phone: 在手機上顯示內容。
safari: 在 Safari 瀏覽器上顯示內容(僅適用於移動裝置)。
samsung: 在 Samsung 裝置上顯示內容。
tablet: 在平板電腦上顯示內容。
外掛標籤
開發者團隊
② 後台搜尋「isMobile() Shortcode for WordPress」→ 直接安裝(推薦)
原文外掛簡介
This plugin works with the open source Mobile Detect Library. You can get further information on its website.
[ismobile device='iphone' debug=true ] Your content [/ismobile]
Parameters
device: Filters the device where you want the content to be shown. It could be more than one device, simply separate them with comma.
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.
