WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Howdy, WordPress Answers Community!

Here's my situation. I want to use a modified version of the Wordpress Press-This bookmarklet to pass the current page URL to a custom field on my post. In this case, lets say my custom field is linked_list_url.

I'm guessing there are four pieces to this:

  • Add a custom input field to the page generated by the bookmarklet
  • Grab the URL of the page the bookmarklet was used on and store it
  • Pass the stored URL to the custom input field
  • Pass the contents of the custom input field to wordpress, setting it as the key for the custom field

I've modified the bookmarklet to have a custom input field and it's pulling the URL off of the page and passing it to the input box, but when I submit the bookmarklet, nothing is passed to Wordpress.

Here's my press-this custom bookmarklet: http://pastebin.com/UjNkpNrE

Specifically: Once I have the URL passed to the custom input field in the bookmarklet, how should I go about having the contents of that field passed to wordpress into the custom field linked_list_url??


share|improve this question
Here's the custom code, excerpted: pastebin.com/6xVyLfMm – Kai Davis Jan 6 '11 at 0:32
Maybe this will help? wordpress.mfields.org/2010/bookmark-this re: hooking into admin_head-post-new.php and setting a custom field value based on a parameter passed in the query string... – goldenapples Jan 6 '11 at 3:11
Are you modifying the core /wp-admin/press-this.php file to achieve this? Because it's not a good idea to change core files, you should try to find a hook to do what you want from a plugin file, so you can survive upgrades. I think your first three steps are solved in the _wp_http_referer form field, and you can solve step four in the wp_insert_post hook. – Jan Fabry Jan 10 '11 at 8:48

Not sure if you're still looking for an answer, but I wrote a plugin to take care of this: http://yjsoon.com/dfll-plugin

I'm not sure if your using linked_list_url means you're already using the plugin, but if you are, I just updated it. :)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.