WordPress.org

Ready to get started?Download WordPress

Forums

How can I use W3 Total Cache with the $result_random code? (2 posts)

  1. nick74
    Member
    Posted 3 years ago #

    How can I still use this result_random code to show different header images on my site while using W3 Total Cache?

    `<?php

    $result_random=rand(1, 2);

    if($result_random<=1){ ?>


    <img src="http://peerfly.com/banners/13698-120x600.gif" border="0">

    <?php }

    elseif($result_random<=2){ ?>


    <IMG SRC="http://www.mb01.com/getimage.asp?m=1720&o=1842&i=27785.dat" width=120 height=600 border=0>

    <?php }
    ?>

  2. Frederick Townes
    Member
    Posted 3 years ago #

    Check the plugin's FAQ from syntax for fragment caching.

Topic Closed

This topic has been closed to new replies.

About this Topic