Customizing PressThis

ITGeek just tweeted: “#WordPress – A tad too complicated for me: can I change PressThis so it applies a category to a post?”

For a peculiar project (posting a big heap of pages) I’d like to have a small set of custom b’marklets.
What I want is to select text on a page, click the correct ‘marklet, and have it impose the correct category, according to which I clicked.

Here’s what Codex says:

The bookmark calls http://example.com/wp-admin/press-this.php?u=&t=&s=&i=

  • u = the url of the current page
  • t = the title of the current page
  • s = the text selection from the current page
  • i = url of an image file

So I need to add a 5th variable there. I can probably code the b’marklet to pass that variable, but when it comes to changing pressthis.php so that it receives and makes use of that 5th variable … that’s over my head!

Advertisements

No comments yet

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: