• Forgive me for my ignorance, but Ive been annoying people all over the web trying to figure out how to keep my search function dynamic once I use WP Cache on my site.

    This was the code I was using to run my search function prior to installing wpcache:

    <form style="padding: 0px; margin-top: 0px; margin-bottom: 0px;"
    id="searchform" method="get" action="<?php bloginfo(‘url’);
    ?>"><br>
    <input type="text" name="s" id="s" size="20"
    onfocus="this.value=”" value="<?php if (!$s) { $s = "
    -Search 4cr-"; } echo $s; ?>" /><br>
    </form>

    Ive tried putting the above code into a file called search.php and using the mclude, but I just cant figure it out. Any help would really be appreciated! Thanks.

Viewing 1 replies (of 1 total)
  • Same problem. This is what I use:

    <!--mfunc get_useronline() -->
    <div id="useronline-count"><?php get_useronline(); ?></div>
    <!--/mfunc-->

    But I get error:

    Fatal error: Call to undefined function: get_useronline() in /home/.irene/easydoesit/easydoesituniversity.com/wp-content/cache/wp-cache-6666cd76f96956469e7be39d750cc7d9.html on line 481

Viewing 1 replies (of 1 total)
  • The topic ‘Dynamic Function with WP Cache’ is closed to new replies.