How to get the image url in the input box from media library?

I have added a post meta to upload image using wordpress media uploader. Looks like it’s a javascript work. I am no good in javascript. I took the js from here: Here is the js code: jQuery(document).ready(function($){ // Instantiates the variable that holds the media library frame. var meta_image_frame; // Runs when the image button … Read more

Correct Approach for Validating Custom Field Input

I have a custom post type with several custom fields. I am looking to do some validation on these fields because they will be used downstream by other services. So, it is important that it can’t be saved until it is correctly entered. The validation is reasonably complex and requires custom logic. Unfortunately, it also … Read more

Get user id from email?

I’m working on an email system, and I’m onto the unsubscribing stage. Since most of my users would not know their user ID, I’m asking them to put their email into a text box (definitely preferred, since this IS an email system). In order to change their user meta (their subscribed status), I need to … Read more

How to use unicode characters in Windows command line?

We have a project in Team Foundation Server (TFS) that has a non-English character (š) in it. When trying to script a few build-related things we’ve stumbled upon a problem – we can’t pass the š letter to the command-line tools. The command prompt or what not else messes it up, and the tf.exe utility … Read more