WordPress.org

Ready to get started?Download WordPress

Forums

Adding Custom Fields to Press This (5 posts)

  1. ikirudesign
    Member
    Posted 4 years ago #

    The short version: I ran across some modifications of the Press This bookmarklet that claims to make it automatically add a custom field for a link URL. I love the idea. But it doesn't work for me. The code for the modified bookmarklet is here.

    Basically, as far as I can tell, it just pulls the URL into a custom made box on the bottom of the original (around line 550), pulls the value of that custom field after submission (around line 50), and then uses add_post_meta() to save that URL in the chosen custom field (around line 80).

    But somewhere along the way it fails. The posts never gets anything added to the custom field.

    Any help is greatly appreciated.

  2. ikirudesign
    Member
    Posted 4 years ago #

    This was about eight pages down, so I thought I'd give it an old-fashioned bump.

  3. sull
    Member
    Posted 4 years ago #

    i just tried setting this up as well and can confirm that it does not work.
    i'm looking into it now.

  4. Mac
    Member
    Posted 4 years ago #

    This hack came about from the work of somebody I copied on the forum. Something happened between version 2.7 and 2.8 that changed...something...and now it doesn’t work.

    What would be really nice would be if somebody could just add the option to use Custom Fields into the core, instead of my hacktackularly bad code.

  5. sull
    Member
    Posted 4 years ago #

    i actually got it to work and it was a foolish mistake on my end.
    because i renamed the press-this.php file and assumed that the form was self submitting but in fact it was submitting using the orignal file, not the one with the enhancements. heh. oh well. wasted an hour looking at more in depth possibilities.

    is it plugged in? :/

    not sure if this applies to other peoples issues.
    email me if you need help.

    sulleleven - at - gmail

Topic Closed

This topic has been closed to new replies.

About this Topic