For some time now, I’ve been unable to blog easily from my iPhone because the “Press This” plug in stopped working well – I suspected it was because of all the extra crap Google Reader adds with the “$UTM” tracking codes to the URL. I’d also noticed that the “Press This Reloaded” plugin worked okay, except that the link it added was only “complete” (including the title of the page linked, the
a href HTML tags) if I happened to select some text to quote.
It turns out that’s the way Scribu, the plugin developer wrote it. He was assuming everyone would let WordPress add the HTML automatically if the URL was on a line of its own, but only reluctantly added the “via (HTML tag link)” code that the original Press This added when people requested it at his support site.
Well, I went in and looked at the actual plugin, and realized that all I needed to do was tweak it so that even if there was no selected text to be quoted, I could have it add a “Link:” preface and the nicely formatted link and page title. It’s under the
self::$content section; I just copied the line that adds the link with a “via ” preface and added it to the “else” statement. Decided to change the preface to “Link: ” because a link with no text selection or explanation made more sense than one prefaced by “Via .”
I’ll have to update this on my other blogs, eventually, and on the iPhone and iPad. But it’s working for me and that’s all I ask.
Love the “press this reloaded” plugin, it’s beautiful and was a long time needed! I’ve noticed though that the “via” link is missing from the bottom of the reposted materials. Having to put that in manually is icky.