add_post_meta when jQuery button is clicked

WordPress Ajax to the rescue! You’ll need to open up a function in WordPress that can be called via a javascript function, which is what the WP Ajax API was built for. It’s a bit of a multi-step process, but is quite powerful once you have it setup. There’s a helpful article here that explains … Read more

How to change the text of Publish Button

You can use the following code to change Publish button’s text to Save even after editing Post Status. Do not forget: Clicking OK or Cancel buttons when editing Post Status will change Publish button’s text. This happens also when editing Post Visibility and Publish time. I used setTimeout() to postpone changing Publish button’s text after … Read more

Injecting CSS into Iframe

If the source of the iframe is not on the same domain as the page that the iframe is embedded on, you cannot change contents inside the iframe. If the iframe’s source is on the same domain, add the CSS directly to the source page. More: https://stackoverflow.com/a/36513940

How do I remove/hide embed excerpts from posts

I was able to remove those excerpts with the following code in functions.php remove_filter(‘get_the_excerpt’, ‘wp_trim_excerpt’); Keep in mind that I’m using a theme “Newspaper” for other excerpt settings, which are not affected by the above code

WordPress Media Uploader not displaying image that has just been uploaded

Your issue sounds like a visual bug in the WordPress Media Uploader’s interface after an image has been uploaded, especially since you mentioned that the image appears in the right-hand preview pane but not as a selectable thumbnail. Try to force refresh the media frame after upload. You can use the add:attachment event to force … Read more