How do I make my wordpress post appear in a mouse hover preview?
- by Dan
Mouse hover previews usually only show title and image. Instead, I want the entire wordpress post to show. The code that calls the preview is this:
adTitle = jQuery(this).find('img').attr('alt');
jQuery('body').append("<div id='preview'><a href='"+ this.href +"' class='colorbox-thumb'><img src='"+ this.href +"' alt='' /></a><p>"+ adTitle +"</p></div>");
jQuery('#preview')
.fadeIn('fast')
I want to insert a wordpress post instead.
I have tried to insert the php code after append("