Tag Archives: WordPress

Post comments not allowed if comment metabox removed

Allow Comments in edit post

When building a site for clients it’s nice to clean out the Admin Dashboard screen of some of the unnecessary (and possibly dangerous) sections and checkboxes to avoid distractions when creating or editing their content. WordPress is flexible enough to allow sections, or meta boxes, to be easily removed through the use of the remove_meta_box [...]

Slow WordPress tag queries

WordPress Logo

While working on a real estate project I encountered very slow response from WordPress on certain queries. These queries are multiple tag queries in the form: http://www.site.com/tag/TAG_ONE+TAG_TWO My application is using WordPress tags to annotate the content and I am providing links to those multiple tag queries throughout the site. Over time and while I [...]

Importing data into WordPress

WordPress Import Real Estate Listings

I’ve been working on a project that requires me to reference an external database of property listings – 106,000 of them – and display these listings in WordPress. One way I thought of was to create a plugin to read the listing data into WordPress, create a post and custom meta fields (or even a [...]

Adding Child Theme filters and Twenty Ten

Working on a child theme project for a client I found that my filter modifications for both ‘excerpt_length’ and ‘excerpt_more” were not being processed. My child theme is based on Twenty Ten and the filters I was using had already been filtered by the parent theme. So, I had added my custom filters and the [...]

WordPress 3.0 and flush_rewrite_rules

I thought I would document this experience I had when upgrading some sites to WordPress 3.0. After WordPress 3.0 came out I took some time to upgrade blogs I manage and was impressed how well the upgrades fared. No issues, fair warnings and ultimately upgraded sites. However, on one of my development sites, after the [...]

WordPress, breadcrumbs and wp_reset_query

I came across weird behaviour recently relating to breadcrumbs. In a site I was working on the breadcrumb functionality (provided by a plugin) was not consistent – it was incorrect on single post pages but correct on category pages. It didn’t make sense. There are not many options for the breadcrumb plugin so it was [...]

What to do if your blog has been hacked

I’ve recently worked on a couple of blog sites that had been victim to malicious activity. The evidence was different in both cases and for one consisted of search results that promoted drugs that enhance performance. And we’re not talking about blog performance For both sites there was hidden text and html code in all [...]

What is the best way to speed up my blog?

Blog performance break the speed limit

There are times when you see your blog fly and other times it seems like it’s taking to an age to load. In your email you’ve got mail from users saying that the blog performance is degrading and not as good as it used to be. You keep checking that your blog cache program is [...]

Integrating WordPress and Google-hosted jQuery 1.4

The release of jQuery 1.4 brings many javascript improvements in performance, better handling of attributes, manipulation of DOM events and many more. Head over to the jQuery site for more details and a breakdown of the new features and improvements. That’s great and we all like speed and flexibility improvements. Now, how would you like [...]

WordPress 2.9 – adding image thumbnails to your blog

One of the new features of WordPress 2.9 and above is having a thumbnail associated with a post. It’s common to have themes that retrieve the first image found in a post and use that as the post thumbnail. But that may not be what you need. The inclusion of images in any post makes [...]