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
23
2014

Code Snippet to Serve Default Thumbnail With Jetpack

Update: The image I assigned as the default one in the Default Featured Image plugin wasn’t big enough. After looking through the code I noticed Jetpack requires the image to be at least 200 x 200. This is surely documented somewhere but I missed it. You can always test your posts by plugging the URL […]

Continue Reading »
Author An article by Vince Comments Comments Off on Code Snippet to Serve Default Thumbnail With Jetpack
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
19
2014

Of Course There Is a Default Image Plugin

I found the plugin I needed to set a default featured image. I’m finding out just how robust the WordPress ecosystem has become over the years. I haven’t really even looked at it in ages. Maybe one of these days I’ll find something I need that there isn’t a plugin for and be motivated to […]

Continue Reading »
Author An article by Vince Comments Comments Off on Of Course There Is a Default Image Plugin
Feb
19
2014

Making Sure a Thumbnail Shows Up on Facebook Share

Since my posts don’t have a “featured image” when they get auto-shared to Facebook there is no image next to the link. This is a bit annoying. I assume there is some simple solution but the two plugins I tried didn’t seem to have any settings for a default. They just used the featured image […]

Continue Reading »
Author An article by Vince Comments Comments Off on Making Sure a Thumbnail Shows Up on Facebook Share
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 […]

Feb
11
2014

Setting up DNS and email for WordPress on NameCheap

I recently purchased some shared hosting with NameCheap.com and I wanted to get a multi-subdomain WordPress (3.8.1) site up and running. My first two challenges had to do with getting DNS management and emailing working the way I wanted it to. DNS I have been using NameCheap for a few years now to manage my […]

Continue Reading »
Author An article by Vince Comments Comments Off on Setting up DNS and email for WordPress on NameCheap