Linux 软件免费装

insert

开发者 ryanve
更新时间 2014年1月31日 03:43
捐献地址: 去捐款
PHP版本: 2.7.0 及以上
WordPress版本: 3.8.0
版权: MIT
版权网址: 版权信息

标签

shortcode insert

下载

详情介绍:

Usage Use the [insert] shortcode inside posts or anywhere else that processes shortcodes. [insert] shortcode attributes All attributes are optional and can be used in combination to yield powerful abilities. Abilities Possibilities with [insert] are endless. Practical uses include: Examples Insert a template [insert template="branding.php"] Insert an action [insert action="dostuff"] Pass data to an action [insert data="field=slug&value=example&tax=category" action="dostuff"] The action receives data as an array. add_action('dostuff', 'print_r'); Insert a page via template [insert query="name=about&post_type=page" template="entry.php"] Insert a page via action This sets up the query and triggers the action. [insert query="name=about&post_type=page" action="dostuff"] WP template tags are available inside the action. add_action('dostuff', 'the_title'); Github

安装:

Requires: PHP 5.3+
  1. Upload to the /wp-content/plugins/ directory
  2. Activate through the Plugins menu in WordPress