I have custom page and get some links of post
if( $my_query->have_posts() ) {
while ($my_query->have_posts()) : $my_query->the_post(); ?>
<li><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>" target="_blank"><?php echo str_replace($xx,'',get_the_title()); ?></a></li>
<?php
endwhile;
}
I want to get custom fields (e.g description, post-image) of post when hover every link of post and put them into div
(tooltip), do I create new file for get custom fields and get file using ajax or just call using wp_query to get custom fields?
<script type="text/javascript">
$('a[rel="bookmark"')
.mouseenter(function() {
//
})
.mouseleave(function() {
//
})
}
</script>