View Full Version : Facebox into wordpress posts

08-05-2011, 04:00 PM
1) Script Title: Facebox

2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex4/facebox/demo.htm

3) Describe problem:

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

<a href="#mobile" rel="facebox">
<img src="<?php bloginfo('template_directory'); ?>/images/mobile.png" />
<div id="mobile" style="display:none;">
<?php echo get_post_meta($post->ID, "key12", true); ?>

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 custom field result cache of first post of wordpress and show custom field result of second post when click second post's button?.