In the Edit Post page how do I modify with jQuery the status select list?

Your first line works for me when I type it in the console of Chrome: jQuery(‘#post_status option[value=”draft”]’).text(‘Approve’); so I assume your problem may be that the element you want might not be loaded yet from where you run your script. Try wrapping it in this: jQuery(document).ready(function() { (function ($) { $(‘#post_status option[value=”draft”]’).text(‘Approve’); })(jQuery); });

:first-child applying to all links [closed]

Your code: ul#menu-menu-1 > li,a:first { margin-left: 0px; } You need to apply the first-child to the list element, and not to the link. You should also not have a comma. Comma indicates a new selection. Try this: ul#menu-menu-1 > li:first-child a{ maegin-left:0px; } *first-child does not work in ie8 and earlier.

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

jQuery HoverIntent is not a function

According to the wp_register_script() Codex the first parameter handle should have a unique name. If we look at the paramters of the wp_register_script() function it breaks down like this: wp_register_script( $handle, $src, $deps, $ver, $in_footer ); So your wp_register_script() function should also break down into a similar way: wp_register_script( ‘dropmenu1’, get_bloginfo(‘template_directory’) . ‘/js/jquery.dropmenu.js’, array(‘jquery’), ”, … Read more