Fragment page cache not working?
-
So I’ve been trying every possible way to make this following fragment code work in my header.php file, but it’s still not working.
<!-- mfunc secret-code --> <?php $base_URL = "https://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; if ( ! is_user_logged_in() ) { // Display WordPress login form: ?> <span style="font-family: 'Exo', Verdana, sans-serif; font-size: 18px; color: #1164a5;"><a href="<?php echo wp_registration_url() ?>" class="simplemodal-register">Register</a> / <?php wp_loginout($base_URL); ?></span> <?php } else { ?> <span style="font-family: 'Exo', Verdana, sans-serif; font-size: 18px;"><a href="/my-classes/" style="text-decoration: none; ">My Classes</a> / <a href="/profile/" style="text-decoration: none; ">Profile</a> / <a href="<?php echo wp_logout_url($base_URL); ?>" style="text-decoration: none; ">Logout</a> <?php } ?> <!-- /mfunc secret-code -->
Am I doing anything wrong? Please help ??
- The topic ‘Fragment page cache not working?’ is closed to new replies.