How to show only next post pagination link using wp_link_pages()

Here’s a suggestion, using the wp_link_pages_link filter to remove the previous links: add_filter( ‘wp_link_pages_link’, function( $link, $nextorprev ) { return get_query_var( ‘page’ ) > $nextorprev ? ” : $link; }, 10, 2 ); We can also create a plugin that removes empty previous/next links. So if we have one of the following: ‘nextpagelink’ => ”, … Read more

How to: JQuery multiple wordpress media uploader buttons in the same options page?

What’s happening at the moment is that you’re assigning the selected media item to all three inputs in the following line: j(‘#preview-fav, #preview-grav, #preview-thumb’).val(attachment.url); In order to pass the value to only one of them, you need to change that line to respond to some kind of marker that’s been set in the buttons. In … Read more