Peter Mumford’s WordPress Dev Blog

Problem Solving for Website Owners and Designers

—by a guy who loves WordPress. And I also love Jekyll. This blog is made with Jekyll. Its hosted at my Github account.

I live in Somerville, MA.

I like to sail and row boats, play chess, brew beer and read novels.

tweet:
email:

Assigning Templates to Categories

April 4, 2015

WordPress has an odd way of handling category templates. You are supposed to create a file called category-wildlife.php for the ‘wildlife’ category. While that is intuitive and simple, suppose you have 50 categories on your site, and 3 category layouts?

Through the Custom Fields, Iterating Along

December 17, 2014

I discovered the plugin Advanced Custom Fields last summer. This is such a powerful plugin. I immediately bought the Repeater Field addon. With repeater fields you can make rows of the same type of field. Loops of fields.

WordCamp Boston

August 26, 2014

I went to WordCamp Boston last weekend. It was basically one-day of presentations, so it was a small WordCamp. My take-away was very different from what I expected: the future of WordPress (and of the web) is javascript.

Pagination for the Magazine Theme

February 7, 2014

Maybe you have a magazine-style WordPress theme with a slider at the top of the front page. The issue of pagination comes up when the user hits the Older Posts link.

Soft link effects

January 31, 2014

This is a simple way to make a site more like a smooth web-app: give a half-second transition property to all links.

Switchable One-Time or Recurring Paypal Donation Button

December 30, 2013

If you need a Paypal donation button, and you want the user to be able to select either one-time or recurring donations, its not so simple. These require completely different form submissions to Paypal.

Categories, Tags and Custom Taxonomies for WordPress

December 12, 2013

Wordpress comes with 2 taxonomies built in: Categories and Tags, but you can add Custom Taxonomies if you like. I was building WP sites for three years before I needed to set up a custom taxonomy for a client.

A Simple Related Posts Widget

December 2, 2013

If you want to put some related posts in a widget you can use the smart YARPP plugin. Or, if you merely want to list posts with matching tags, you can put a function in your Wordpress theme, or make your own plugin.

Responsive Comment Forms

May 29, 2013

After you make the front page of your theme responsive (see my previous post), you need to check the other templates. And one area that might break your theme, and resists the simple CSS-media-queries method, is the comments form, typically loaded on the single post template.