Get custom fields when hover link of post

I would just put the custom fields in the <li> after the <a> and then show/hide them with your preferred tooltip method, whether it be CSS, JS or a combination of the two: <?php if( $my_query->have_posts() ) { while ($my_query->have_posts()) : $my_query->the_post(); ?> <li> <a href=”https://wordpress.stackexchange.com/questions/155135/<?php the_permalink() ?>” rel=”bookmark” title=”Permanent Link to <?php the_title_attribute(); ?>” … Read more

WordPress Plugin Tool Tip Helpers

What you’re looking for is called “pointers”, available since 3.3 and you’re right it lacks documentation. It’s done with a little bit of JavaScript. You may look at this post to find useful information about pointers. It uses native WP scripts and styles this way : wp_enqueue_style( ‘wp-pointer’ ); wp_enqueue_script( ‘wp-pointer’ ); See also this … Read more

jQuery UI Tooltip position on dashicon

the simple solution to make your tip follow mouse when hover over certain element like so: $(“.selector”).tooltip({ track: true,//make tip follow mouse when hover over all element with class “selector” content: “Tooltip content here”, });

Displaying Post Content on tooltip

The problem is that your template doesn’t have any quotes around the title attribute at all: title=<?php echo get_the_content(‘post_content’, $post->ID); ?> So the browser’s making its best guess and using the first word. So you need to add the quotes: title=”<?php echo get_the_content(‘post_content’, $post->ID); ?>” Also, if you’re outputting arbitrary content into an attribute you … Read more