Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to save link in a custom field #23

Open
openbayou opened this issue Oct 15, 2015 · 1 comment
Open

Ability to save link in a custom field #23

openbayou opened this issue Oct 15, 2015 · 1 comment

Comments

@openbayou
Copy link

It would be awesome if this plugin had the ability to save a link in a custom field.

@CKMacLeod
Copy link

Agreed (if I understand you correctly): The ability to save the source-link separately would be very useful, and is frequently a feature of other bookmarklets. It's "almost there" in Press This. If I understood PressThis itself just a little better,I think I'd have it already.

Easiest way to achieve it that I've found in the meantime is sub-optimal. Add a function to save_post or wp_insert_post hooks, narrowed to a category set aside for link-posts, so that, on save/publish/update, the link is added to Post Meta via a preg-match of the post content. Much better (since it wouldn't require using the post editor), and more elegant since you're preg-matching for a variable already found in Press This than added to the "Source" link, would be a function that hooked into or filtered the post data array directly, possibly via wp_insert_post, and automatically added the key-value pair to Post Meta.

Also nice, and somewhat similar, but buried even more deeply into Press This or absent, would be ability to grab other source info where present in Open Graph or other meta tags (especially original author name), and also save it as Post Meta or pre-embed it the Post Title and/or Content. .

I'd wanted to avoid having to duplicate and fork Press This. This (excellent) plug-in points to the possibility of instead extending it rather elegantly. I'm just not sure whether it's possible to get the full desirable functionality through extension rather than forking.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants