Mar
31
2014

Using Git Subtree to Pull Out New Plugins

wordpress-300x300
This entry is part 6 of 6 in the series Set Up a Development Environment

In the post about my development workflow I didn’t explain why I decided to track the entire website instead of just parts of it. Since I’m not doing any development of the WordPress core itself, the option exists to just track my own plugins and themes by creating a new git repository in their directories. […]

Mar
30
2014

Other Servers for the Development Environment

wordpress-300x300
This entry is part 4 of 6 in the series Set Up a Development Environment

This is just a quick recommendation for two servers that you might find useful in your development environment. Acrylic DNS Proxy Acrylic is a caching DNS proxy. You tell it where your real DNS servers are (provided by your ISP) and it will contact them when you need to look up an internet address. Then […]

Mar
18
2014

Notepad++ is a Must Have

wordpress-300x300
This entry is part 3 of 6 in the series Set Up a Development Environment

I haven’t made it to discussing what tool I want to edit code in yet. That’s no excuse for not going ahead and promoting Notepad++ though. Whether you prefer a full integrated development environment (IDE) or a simple text editor you should have Notepad++ on hand. You’ll be editing configuration files from time to time […]

Mar
15
2014

A Web Server for WordPress Development

wordpress-300x300
This entry is part 2 of 6 in the series Set Up a Development Environment

The first requirement I mentioned in the intro seems obvious enough. I need “a web server that can run PHP and WordPress and has the ability to serve multiple sites so that I can work on multiple projects.” Fortunately, this easy enough to do on Windows 2008 Server by downloading an Apache web server distribution called XAMPP. […]

Mar
15
2014

Setting Up a Development Environment – Intro

wordpress-300x300
This entry is part 1 of 6 in the series Set Up a Development Environment

So far I’ve been making changes and tweaks directly to my live site. I’ve added themes and plugins, and the few times I’ve modified code I did so in cPanel’s built in editor. That’s worked fine for minor changes but if I’m going to be changing code and adding plugins that’s a terrible setup. I’m […]

Feb
23
2014

Code to Add a New Menu Item Type

wordpress-300x300

My latest diversion. The code at this link adds a new meta box on the Appearance>Menu screen. The defaults are Page, Custom, and Category. This particular one adds a divider type. It doesn’t have any code beyond getting the meta box to show. There is a plugin that adds a custom menu item called Dynamic […]

Feb
22
2014

SQL to Pull WordPress Menu Info

wordpress-300x300

I wanted to see how WordPress stored its menus. I assumed there must be a table in the database somewhere but I couldn’t find it. Turns out that’s because menu items are stored as posts with a ‘nav_menu_item’ post type. In all there where about 4 or 5 tables the information was spread over. I […]

Feb
20
2014

NameCheap Suffers DDOS Attack

wordpress-300x300

Well this explains why page load times went to 30 seconds here earlier. And here I thought maybe I had finally added one too many plugins. Given the scope of the attack (100Gbps and a new technique) it is fairly impressive they dealt with it in 3 hours. The official response from management below. Source: […]

Pages:12»