Browsing articles from "February, 2014"
Feb
23
2014

Code to Add a New Menu Item Type

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

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

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: […]

Feb
18
2014

Site5 Free Themes Are Very Nice

I’m not doing my web hosting with the Site5 company but I did get some themes from them. They are all pretty decent looking themes that work well, a big improvement over most of the free theme sites out there. Check it out: http://www.s5themes.com/themes/

Feb
15
2014

Diamond Multisite Widgets Update 1

I did end up digging into the code of Diamond Multisite Widgets (see previous post) a little bit. In the end it looks like it will be best for me to just use the Duplicate Widget Plugin since it does everything I personally need. In the past (I think pre-2.8) WordPress only allowed a widget to […]

Feb
13
2014

Diamond Multisite Widgets

Since I’ve setup a blog network with multiple blogs I thought it would be nice to display a list of all the sites in a sidebar on all the sites. It turns out there is a great plugin for this called Diamond Multisite Widgets. It not only has a widget to list all the blogs […]