WordPress Sandbox
This is where I drop off some files or other WordPress snippets that I want to have handy. Enjoy!
Tweet Pull Quote Plugin
This is a quick little plugin that lets you create pull-quotes for your posts. It includes a few options, and most notably includes a “Tweet” button that will quote the text, include a link to your article, and include your Twitter handle if you set it to.
Tweet Pull Quote Plugin v 1.0 – Download it here
To use it: add {pq} and {/pq} (using [ instead of { ) to any text in your posts.
Settings are found in WordPress > Settings > Tweet Pull Quote
You can also add an option on the shortcode: “pq align=right” to align the box to the right instead of to the left.
WP Pointer Demo
I’ve spent a littleĀ time playing with the new WP-Pointer (I called them “tool tips” until I figured out their official name) that was added in WordPress 3.3. I’m not surprised that the core team has called this an “internal” tool with limited documentation. The execution is not bad – not bad at all – but it’s really not quite up to WordPress standards for functionality, ease-of-use, and reliability. So, I wouldn’t be surprised to see most of this “documentation” go out the window for WP 3.4!
My Pointer Demo – Download it here
I’ve created a pointer demo for my friends at OCWP Dev Night – so enjoy! This is a basic plugin that shows off a few different use-cases for the wp-pointer:
- A basic pointer
- A step-by-step pointer series
- An AJAX-driven pointer
- A pointer with appended CSS styling
This isn’t intended to be used as a plugin on your site – it’s more to provide a playground for you to learn some of the basics of the pointer on your test box.
10 thoughts on WordPress Sandbox
Pingback: OC WordPress Developer Day Meetup 1-16-2012 | OCWP
Pingback: Another New Toy… Tweet Pull Quote Plugin for WordPress by @HeyDaveCole Dave Cole
Dave, bought the dashter plugin, looks promising!
And installed PQ.
Two things:
Making the quote doubles the text. As a quote (nice) and as plain text as well. Is that the idea? That you write a text and put the PQ markers around a bit?
Plus: I would love to have a quote with white space around it.
See links. Is that possible?
https://skitch.com/e-erwblo/84gp8/pq-double-text
https://skitch.com/e-erwblo/84gpf/pq-white-space
I didnt realise i was posting to a blog
The space question is sorted, but the other remains. I get double text. Is there a solution to that? If so i can and will use it a lot!
Hi Erwin,
Thanks for the comments! In regards to the “double text” – the idea of this plugin is to replicate the effect that gets used in print magazines. The text that is selected for the pull quote is supposed to be from the text so that you as the author can focus on writing your best content and then only pull out the most important highlight for the pull quote. To the casual reader, this is a very natural process – they see the quote, which draws them in to the paragraph, and then they recognize how it gets used in context.
That being said, I can understand that you might want to override that process for your own blog writing.
If you’re comfortable jumping in to the code of the plugin, you can make 1 small change and it should remove the text from your original article.
Change LINE 53 from:
$new_content = str_replace( $quotehere, $clean_string, $the_content);
… to …
$new_content = str_replace( $quotehere, “”, $the_content);
… That should strip the original text from your content while retaining the pull quote. I just tested this on my local server and it worked perfectly. Lemme know if you’ve got any other questions or comments!
Thanks again for visiting and sharing your feedback.
Very cool! This is the tool that Derek Halpern suggests in his “The Perfect Blog Post”.
Hi Dave,
Love the plugin!!
It looks awesome, thank you for the tweak for blogs, I have changed my code so that the quote only turns up once in my blog post
Quick question…it is possible to tweak it further so that the link in the tweet is a shortened link?
Cheers,
Crystal
Hi Crystal,
Glad you like the plugin!
At this point; no, the link is *shortened* automatically by Twitter. Running a link through a custom shortener (such as Bit.ly) is a much more complex project. I wouldn’t be surprised if at some point soon we see Twitter offering some link analytics on t.co links – but that hasn’t come yet.
Thanks for your comment; glad you enjoy!
Cheers,
Dave
Thanks so much Dave. Love the plugin, it is exactly what I was hoping to find. Made a few tweaks to the colours and it works beautifully.
Thanks for the note Brad! Glad it came in handy.