dave

Code Optimization: Equal vs. Identical Operators

One of my favorite optimization techniques is using the Identical operator. Why? Because it’s such an easy replacement for the Equality operator and it works much faster. Wait, now you might be wondering “Equality Operator” ? … “Identical Operator” ? Aren’t those the same thing? Well, no. Let’s take a look. PHP has lots of …

Code Optimization: Equal vs. Identical Operators Read More »

Things to Consider when Creating a WordPress Hybrid Site

Recently, someone from Germany connected with me. He’s a developer himself and setting up a pretty cool travel site, mostly written using the Symphony Framework. They wanted to integrate a WordPress blog and he had a hard time designing the flow of this Hybrid system. This is not the first time someone has emailed me …

Things to Consider when Creating a WordPress Hybrid Site Read More »

Shopping Carts and WordPress

This morning, I participated in Jason Tucker‘s WPWatercooler podcast program. The topic of discussion was e-commerce plugins for WordPress. I’ve worked with several shopping carts for WordPress. These are all complicated plugins, just due to the fact that shopping carts are not easy. They require a large amount of code just to make the products …

Shopping Carts and WordPress Read More »

Creating Virtual Pages in WordPress

From time to time, I have the need to create the contents for a virtual page — that is, a page that is not stored in the database. This sort of thing is easy using a framework like CodeIgniter, but WordPress’s thing is displaying content from your database and not virtual content that is created …

Creating Virtual Pages in WordPress Read More »

Prefixing

People who are new to WordPress will almost immediately see something that might at first seem confusing — or at least strange. I’m talking about “prefixing.” In WordPress, prefixes are used on many things: function names, class names and even PHP defines. But you might be wondering why. The main reason is to avoid name …

Prefixing Read More »

Variable Width Pages For Your Theme

Starting with WordPress version 3, WordPress Theme Developers can now set a global variable called to inform WordPress of the desired width of the page. This values is used when displaying full-width images and for videos. But what if you have different widths for different pages? You need a way of indicating to the WordPress …

Variable Width Pages For Your Theme Read More »