WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Meta Refresh in Header using is_page (7 posts)

  1. biggeorge
    Member
    Posted 3 years ago #

    I have a webcam uploading jpeg's every 30-seconds. I would like to refresh that specific page only using the is_page tag. I know it belongs in the header, and I've used it before with success, but for the life of me I cannot remember the exact tag.

    Please help.

    <?php if( is_page( '1044' ) <meta http-equiv="refresh" content="30">; ?>

  2. alchymyth
    The Sweeper & Moderator
    Posted 3 years ago #

    try to adapt the syntax:

    <?php if( is_page( '1044' )) { ?>
    <meta http-equiv="refresh" content="30">
    <?php } ?>
  3. biggeorge
    Member
    Posted 3 years ago #

    Thanks a million, alchymyth. Works like a champ!

    For others wanting to do this, the code seems to work ONLY if it's place on the last line of the header.

  4. biggeorge
    Member
    Posted 3 years ago #

    You can see it in action here: http://georgefaris.com/?page_id=1044

  5. mastertechmag
    Member
    Posted 2 years ago #

    AWESOME!! Thanks guys, I'm glad I wasn't the only one looking to do this...

  6. taifurbau
    Member
    Posted 2 years ago #

    how can I auto refresh the homepage only?
    Thanks in advance.

  7. taifurbau
    Member
    Posted 2 years ago #

    forgotten to tell one thing that I use Thesis theme & wordpress 3.3

Topic Closed

This topic has been closed to new replies.

About this Topic