Category: Web Development

oikos get attachment link filter

oikos get attachment link filter This fixes a flaw in the WP gallery shortcode. The problem is that when you make a gallery, and you set link to "file", it links to the original. That might be a 10M jpeg. This function links to the large instead of the original. On every site with galleries, I install lightbox and this nice little filter.

A smart PayPal form

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

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

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

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

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

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