archive for the ‘Web Development’ Category

Pagination for a Magazine Theme

February 20th, 2014

Say you have a magazine-style WordPress theme. It has a slider that loads three posts, and then a list of recent posts.  The issue of pagination come up when the user hits the Older Posts link.

Maybe you have a front page that displays 3 posts in the slider. The slider is a loop. Then a default loop that shows your most recent posts. And the number of posts is determined by the setting in your Settings – Reading – Blog pages show at most X posts.…

Migrate a database

February 11th, 2014

WP Migrate Pro

A smart PayPal form

January 9th, 2014

I created this smart PayPal form for Trekkers.org. See trekkers.org/donate/. It lets the user switch back and forth between recurring and one-time donations. I couldn’t find a free plugin that can do this.

If this is installed on a WordPress or other CMS site, it is better set up as a plugin. A site owner does not need to lose all functionality just because he/she switches themes.…

Some social media non-plugins

December 13th, 2013

I like these:
WordPress snippets to interact with social networks

Update, 4 years later. Obviously, these snippets are way out of date. In any case, if you want to add social media buttons to your site you are probably better off with a plugin, that hopefully will stay updated and not snoop on you.. I can’t recommend one. Frankly, I think social media buttons are overrated.…

Categories, Tags and Custom Taxonomies for your WordPress site

December 12th, 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.

There is a lot you can do with Categories and Tags. I’ve always told my clients “use as few categories as you need to organize your site, and as many tags as you like”.…

A simple related posts widget

December 2nd, 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. In some ways this is better than the fuzzy logic of YARPP because it gives you more control: you just give posts the same tag, and you know they are related.…

Trekkers.org

November 1st, 2013
Trekkers.org

This was a really nice project for me: a cool non-profit group, that wanted an upgrade of its old website to WordPress. Trekkers is an org that takes high school kids on bus tours around the USA.
We created a site that had good balance between easy-admin, and rich news content. It has the potential for good community interaction, with lots of leaders and (hopefully) students posting content.…

Customizing Twenty Twelve

October 24th, 2013

Twenty Twelve is my favorite of the WordPress default ‘twenty’ themes. Its elegant and responsive. I like the smartphone menu.

Twenty Ten is not responsive at all. Twenty Eleven is simply less classy. Twenty Thirteen looks like a good full-screen theme, but I have not yet done anything with it.

Twenty Twelve should be a perfect candidate for child-theming. You would think. But the stylesheet is written is a bizarre and complex way.…

Favorite WordPress Plugins

June 12th, 2013

Here is my plugin list.

Essential plugins: WordPress SEO (by Yoast) or All In One SEO. There is lots of debate over which one of these is better. Yoast’s is more fully featured, All in One is more automatic (set it and forget it). If you are willing to do the work, go with Yoast, and be sure to read his manual. Actually read Yoast even if you are using All-in-One.…