Pagination Function For WordPress

A modified version of this code, with extra features, is now available as a WordPress plugin: WP-Paginate

The way WordPress handles post pages is to provide links to the previous posts and next posts, using previous_posts_link() and next_posts_link() respectively. When redesigning my site, I wanted to paginate the post pages to provide users with a more usable, intuitive interface.

While there are a number of WordPress plugins that enable pagination, I chose to write my own. I wanted a something that was flexible enough to be used in a number of different situations, but most of all I wanted the experience and challenge of writing my own pagination function.

Read more »


SimpleModal Contact Form (SMCF) 1.2.4 Released

SimpleModal Contact Form (SMCF) 1.2.4 includes the following changes:

  • Upgraded SimpleModal to 1.3
  • Fixed the bug that was supposed to be fixed in SMCF 1.2.3 ;)
  • Moved the JavaScript loading to the WordPress init() function
  • Optimized smcf.js variables to reduce file-size
  • Moved close (X) link HTML from smcf.php to smcf.js (the SimpleModal closeHTML option)

Read more »

New Version of

After months of design changes and WordPress theme customizations, I'm happy to introduce the latest version of!

I've actually been working on this redesign, on again, off again, for the last year or so. Although the design has been through a number of changes, the technologies I wanted to build the site with have remained the same: WordPress and jQuery.

So, I'd love to hear your thoughts on the new design - please leave a comment. If you didn't see the previous version, here's a screenshot of what it looked like:

Read more »

SimpleModal 1.3 Released

It has been over 2 months since I released SimpleModal 1.3 and was waiting to finish the documentation until making an official announcement.

Well, days turned into weeks and weeks turned into months, but finally, the new documentation along with a new site design, are available!

Read more »


SimpleModal, SMCF and Site Updates

It's been a while since I've posted, so I thought I'd provide some updates.

First, I will be offline from Aug 2, 2009 - Aug 8, 2009, so I will not be able to respond to any emails during that time. For questions or issues regarding SimpleModal, please use the jQuery Google Group. For questions or issues regarding SimpleModal Contact Form, please use the WordPress support forum (and make sure to tag your question with simplemodal-contact-form-smcf).

Read more »

SimpleModal 1.3-b1 Released

SimpleModal 1.3 has been released

Considering the number of changes and new features, I've decided to release 1.3 as a beta version. This release covers most of the common requests I receive for SimpleModal: forced focus on the dialog (prevent tabbing away), ESC/overlay-click to close dialog and an appendTo option.

*NOTE*: Moving forward, all issue/bug/feature requests should be made on the issues page:


Read more »


SimpleModal Contact Form (SMCF) 1.2.3 Released

Charles found an issue with the validation code - it was requiring a subject even when the subject field was disabled.

A fix has been made and uploaded to the WordPress plugin repository. You should see the update available shortly.

Thanks Charles!

For more information and the download, please visit the SMCF WordPress Plugin Page.


SimpleModal Contact Form (SMCF) 1.2.2 Released

SMCF 1.2.2 includes the following changes:

  • Upgraded SimpleModal to 1.2.3
  • Added addslashes() function for smcf_messages JavaScript object to prevent localization issues
  • Added stripslashes() function for the email message
  • Removed 70 character limit for wordwrap() function - defaults to 75
  • Added wp_page_menu() and wp_list_pages() filter to dynamically add smcf-link class to a contact menu link
  • Changed format of validation messages - requires translation updates

If you are using wp_list_pages() or wp_page_menu(), this release makes it a lot easier to use SMCF without having to modify any source files. All you need to do is enter the matching link title on the SMCF options page.

I've also modified the email message to use the default wordwrap of 75 characters and have removed the slashes added by magic_quotes.

Translators: Updates were made to the verbiage, so if you would be so kind to update your translations, I'd appreciate it!

For more information and the download, please visit the SMCF WordPress Plugin Page.

Eric Martin