'wordpress' Category
WordPress Plugin Bloat
Friday, July 11th, 2008Trent brought to light the unintended performance impact of just activating plugins without even using them in your theme. Highslide was one of the plugins he profiled.
As our wedding cake blog has grown in traffic we’ve been working to optimize our plugins to reduce overhead.
Using Charles Proxy Tool we took a look at the entire footprint of our site and started identifying optimization opportunity areas. One area were we made gains was modifying our plugins to only load javascript libraries when absolutely needed. For example if you are only using a plugin in your category section, is it really necessary to load that library for other sections of your blog?
This approach helped reduce our overall load time and hopefully should help keep our users happy…
Excluding tags from Posts in WordPress
Monday, February 18th, 2008If you are using the wordpress the_tags function and you want to exclude certain tags from showing up with associated posts you can use the following function in place of the_tags:
(more…)
Secure WordPress
Friday, January 18th, 2008Upgrade to 2.3
Saturday, October 27th, 2007Here are my notes related to my upgrade of our wedding cake blog to WordPress 2.3:
1. Custom Query String refers to the old wp_categories table. Had to edit line 252 to reflect the new terms table:
Note: Looks like Moshu made this change and added tagging support. Download it here. This means I can now throttle the number of cakes that appear in a tag archive page.
2. Ran importer for UTW and updated theme to use new native tag commands. Everything worked fine, although I did have to run the following query in the backend to remove the dashes from the old UTW tags:
3. Dropped old wp_tags and wp_tag_synonyms tables
4. Upgraded Headspace2. I noticed headspace 2 doesn’t expose the ability to use tag names in your meta tag descriptions (someone please correct me if i’m wrong) So I hacked inline_tags.php and added the following on line 54:
Update: John has already updated his headspace2 plugin to include a %%tag%%. I highly recommend checking this plugin out. John does a tremendous job supporting the tag - please help support his efforts by donating.
5. Tags associated with a post are not searched by default, so I created a plugin to do that. I also use this plugin to correct user search miss-spellings. For example, try searching for brithday cakes on our wedding cake blog.
Note: An even better alternative to my plugin is John’s Search Unleashed plugin.
6. Updated my linking structure so that I don’t use trailing slashes for categories or tag pages
Exclude WordPress Search Results from Search Engines
Thursday, August 9th, 2007I’m usually frustrated when an online search returns another set of search results. Back in March, Matt Cutts spoke about this on his blog, and I’ve been meaning to ensure to exclude our cake search results from all search engines.
At first I thought about adding an exclusion in my robots.txt, but because the search results are built off of index.php, I figured a theme modification would be better.
To do this I added the following in my header.php:
<meta name="ROBOTS" content="NOINDEX, NOFOLLOW">
<? }?>
Short and simple…:)
Upgraded to WP 2.1
Sunday, January 28th, 2007I recently upgraded one of our testing sites to WP 2.1 Here are some of the issues and fixes that I went through:
(more…)