跳到内容

AddFunc Adaptive Content

v2.0

Joe Rhoney · 2015年9月18日 上架

Adds functions, shortcodes & quicktags to empower WordPress users to have better control of when content is served, based on device.

正在使用
50+
评分
5.0 / 5
累计下载
3,467
最近更新
2018年12月11日
2 条评价需要 WordPress 3.0.1+已测试到 5.0.32

截图

Quicktags available in Text view.
Quicktags available in Text view.
This handy Help tip is easily at hand whenever you're editing content.
This handy Help tip is easily at hand whenever you're editing content.

With all of the new web enabled devices springing up in the market and with the wide range of screen sizes and data transfer speeds, a website can no longer serve the same content upon every request (not without some degree of limitation and/or traffic-loss).

This lightweight plugin lets content writers and theme authors choose when WordPress should or shouldn’t show any give content item using shortcodes and quicktags or theme elements using functions. It uses Mobile Detect (a PHP script) to identify the website visitor’s device as either mobile, tablet or desktop, enabling you to allow or disallow content to be output. Use it to prevent large files such as images from outputting to devices that generally have a lower data transfer speed available to them (e.g. mobile devices). Serve more extensive copy and more elaborate userinterfaces to desktop devices and laptops. Target tablets to market a tablet oriented product or service. You can also detect iOS, iPhone, iPad, Android OS and Windows Mobile OS.

Example of a shortcode: [notmobile]Write anything you want between these two tags and WordPress will only output it when the visitor is viewing your website with a desktop/laptop or tablet and not with a mobile device.[/notmobile]

Easily add these shortcodes using the Quicktags in Text view.

All shortcodes also exist as functions (prefixed with aFAC_ for namespacing), which can be used in your theme as needed. See the FAQs for more detail. Each function is a boolean and simply returns true or false.

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums