• Hello,

    I running wp version 3.9.1 with gamepress theme. When I use get_header() function my php script executed twice (all scripts where is involved mentioned func).
    For example:

    <?php
    require('./wp-blog-header.php');
    get_header();
    error_log("TEST!", 0);
    ?>

    output will be:

    [28-May-2014 20:18:57 UTC] TEST!
    [28-May-2014 20:18:57 UTC] TEST!

    NOTE:
    1. With get_footer() is everything fine…
    2. This is only with GamePress theme.

Viewing 1 replies (of 1 total)
  • Thread Starter Miljan001

    (@miljan001)

    Ok, I found the (temporary?)solution. This is line 8. in header.php in GamePress theme:
    <link rel="shortcut icon" href="<?php echo of_get_option('gamepress_favicon_url'); ?>" type="image/x-icon" />

    I put under comment that line and now everything running smooth…

Viewing 1 replies (of 1 total)
  • The topic ‘Php script executed twice with get_header()’ is closed to new replies.