Conditional Meta Refresh
-
I need to know how to use the meta refresh tag in a conditional sense. I only want the homepage to auto refresh every 5 minutes, but none of the other pages.
I can get it to refresh everything by using the meta tag as it stands, but I am having trouble making it work on only the homepage.
<meta http-equiv="refresh" content="<?php if ( is_home() ) { single_post_title('', true); } else { bloginfo('name'); echo " - "; bloginfo('description'); } ?>" /> <meta http-equiv="refresh" content="300" >
Any quick ideas?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Conditional Meta Refresh’ is closed to new replies.