May 22, 2012

Howto Move a WordPress 3.0 Site

When developing this site, and it’s sister sites ecomsmith.com & gosatchmo.com, I decided to use the new multi-site feature of WordPress 3.0.  Everything went great during development.

What I did was to develop using a local address of “blogs.dev” as my base site, and then add all the other sites using the WPMU features.  So I had coderseye.blogs.dev and ecomsmith.blogs.dev as well.

All was great, until it came time to make the sites live.  I did what I used to do.  I dumped all my data from the database, opened it in an editor, and replaced “blogs.dev” with the live domain name that is acting as the master control for this site.

It worked!  Sort of.  It showed my blogs, but I couldn’t login.  WordPress kept complaining about needing cookies enabled.  But … but … they are enabled!

Fixing it took a bit of trial and error. [Read more...]

Technorati Tags: ,

Modifying Widget Titles in WordPress

On a recent project, my client wanted graphical headers for the widgets on her WordPress blog. Unfortunately, widgets are not that easily themed. Nor can you do this in CSS.

The internet was no help. Lots of people were suggesting using a “dyamic_widget_params” filter. Nope, that isn’t what I want. I don’t want to modify before and after the title, I want to actually change the title.

But, with some poking around, I figured it out. It’s actually pretty easy.

[Read more...]

Technorati Tags: ,

Related Posts plugin modifications

adapter Related Posts plugin modificationsI’ve been delaying using a related entries plugin because it didn’t fit with my normal way of posting. See, it uses a WordPress custom field "keywords" to do its matching. That’s OK, but I already have all my posts marked up with inline keywords, for the Technorati plugin Simpletags.

So, when I have an itch for long enough, I scratch it. So, I’ve written an extension to the related-posts plugin which reads keywords from the post text inside [tags] [/tags] markers. In other words, it leverages the use of the Simpletags plugin. You can see it in action by clicking the post title of any entry on this site.

I’ll be submitting the code additions to the original plugin author, but I don’t know if he’ll take them, since it is sort of an edge-case. In the meantime, feel free to comment here.

Here’s my modified plugin: Related Posts Mod 2.02.

Related posts

Technorati Tags: , , ,