by Chris Coyier & Jeff Starr

Tag: shortcode

Pro Version of Block Bad Queries

Posted by on

BBQ Pro is the premium version of my free security plugin, Block Bad Queries. BBQ Pro helps keep your WordPress-powered site safe and secure by blocking bad URI requests. This helps to conserve precious server resources like memory and bandwidth. BBQ Pro runs silently in the background, checking all incoming traffic and blocking any URI requests that contain nasty stuff like eval(, base64_, and other malicious nonsense. It’s advanced firewall protection that’s fast, flexible, and fully customizable.

SES Pro – Ajax Powered Email Signup Forms

Posted by on

SES Pro is a premium email newsletter plugin for WordPress. It is 100% shortcode-based with Ajax-powered signup forms that can be displayed anywhere. There are no monthly fees or limits on the number of subscribers, how many emails you can send, or anything else. It’s just a lightweight yet full-featured email-signup plugin that's super-easy to use.

Shortcode for Includes

Posted by on

One thing that WordPress doesn't have the ability to do "out-of-the-box" is do includes, in the sense of including the content of one post into the content of another post directly in the post editor. For the umpteenth time around here, shortcodes to the rescue!

Add Private Content to Posts via Shortcode

Posted by on

Recently, WPRecipes posted an incredibly useful technique that uses a shortcode to add private content to blog posts. This functionality makes it easy to manage leftover data, miscellaneous notes and other communication by keeping everything together with its corresponding post. Consolidating information like this helps to streamline flow and organization into the future.

Shortcodes in Widgets

Posted by on

I had occasion the other day to run a shortcode inside of a text widget. You know shortcodes... we talk about them all the time. They are keywords in [square brackets] that do something special. Sometimes something really simple like returning a string (so you can have a global location to change that string) or something complicated like call a plugin that does something fancy like build a photo gallery.

Custom Query Shortcode: Run a Loop inside Any Post/Page

Posted by on

I had the occasion yesterday to have a page with a section on it where it would output a very specific set of other pages, which would need to change dynamically. What I could have done is built a special page template for this page, and inside that template run a query_posts() to get these posts. But I wanted this page to remain editable from the admin. Besides, creating a special page template every time you need to do something like this is too cumbersome. WordPress is extensible enough to do better.

Hence, the Custom Query Shortcode!

Google Maps Shortcode

Posted by on

David Hollander of SparkWeb Interactive sent us in a little code clip for inserting Google Maps into Posts/Pages by the use of shortcodes. Google actually has copy-and-pastable iframe code already in Google Maps that is really easy to snag, but David was having problems with the Visual text editor screwing up the code when saving the Post. With a short code, no problem.

Global Custom Fields

Posted by on

UPDATE: Make sure to take out "Take Two" on this concept, with a cleaner method for doing this.

Custom fields allow us to attach data to Posts or Pages that we can yank out and use at will in our templates. They are awesomely flexible and single-handedly allow WordPress to be used for about any CMS need. The fact that they can only be used on single Posts can be limiting in some circumstances. Sometimes you wish you could grab a custom value that you can control and is consistent globally, regardless of the current post. In this post we'll look at a technique to do so.

Code is poetry