clear custom field result

Discussion in 'WordPress' started by dsimi, Jul 21, 2011.

  1. #1
    Iam using the following code to get a custom field results if user click a button.

    
    <a href="#mobile" rel="facebox">
    <img src="<?php bloginfo('template_directory'); ?>/images/mobile.png" />
    </a>
    <div id="mobile" style="display:none;">
    <?php echo get_post_meta($post->ID, "key12", true); ?>
    </div>
    
    Code (markup):
    I have 4 posts in this page. If i click first result button this is display correct result. If i click the next others, all click is displaying the first post of custom field.

    How to clear the first custom field cache?.
     
    dsimi, Jul 21, 2011 IP