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”

    1. 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.

  1. 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?


    1. 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!



Leave a Reply