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.
- Upload
auto_refresh
directory to the /wp-content/plugins/
directory
- Activate the plugin through the 'Plugins' menu in WordPress
- Then customize the plugin from the
/wp-content/plugins/refresh.php
file
1.0
1.1
- Added ability to assign to certain pages
1.1.2
- Added options page. (still in development)
== Configuration Examples ==
How to configure:
For more information see this link on the wordpress codex http://codex.wordpress.org/Conditional_Tags
Example Use of this code when only show this code if is single post 54 or page 23
`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