Linux 软件免费装

Auto Refresh

开发者 xlrdxrevengex
wordpress answers
更新时间 2011年5月24日 14:30
PHP版本: 2.8 及以上
WordPress版本: 3.2

标签

meta refresh wp_head

下载

1.1 1.1.2

详情介绍:

This plugin is great for people who have a very busy site and want a refresh every 10, 20, 30, 60, 1800 seconds or whatever you specify in the file. It has a built in filter for enabling this code on specific posts & pages.

安装:

This section describes how to install the plugin and get it working.
  1. Upload auto_refresh directory to the /wp-content/plugins/ directory
  2. Activate the plugin through the 'Plugins' menu in WordPress
  3. Then customize the plugin from the /wp-content/plugins/refresh.php file

更新日志:

1.0 1.1 1.1.2 `Function auto_refresh() { $ssingle = is_single ('54'); issignlearray = is_single ( array ('')); $ispage = is_page ('23'); $ispagearray = is_page ( array ('')); if ( $issingle && $issinglearray && $ispage && $ispagearray ) echo ""; else echo ""; }` Example Use of this code when only show this code if is single post's 54, 55, 56, 'about-me' or page 23, 24, 25, 26 'contact-us' `function auto_refresh() { $issingle = is_single (''); $issignlearray = is_single ( array ('54, 55, 56, 'about-me'')); $ispage = is_page ('23'); $ispagearray = is_page ( array ('23, 24, 25, 26 'contact-us'')); if ( $issingle && $issinglearray && $ispage && $ispagearray ) echo ""; else echo ""; }` For more information see this link on the wordpress codex http://codex.wordpress.org/Conditional_Tags