Tag Archive: Wordpress


For those who have had to move wordpress you probably have found it a little tedious as there is no quick way to pick it up and move to another server.  Well I have moved a bunch of sites from my development server to their respective production environments so I have the process down.  Below is a checklist of how to move from server to server.

  1. Move all the files from the WordPress directory to the main server (I find it easier to zip everything the transfer that one file and then unzip on the server)
  2. Edit the wp-config.php file in the root folder to have the correct connection information on the new server
  3. Dump the database to a file using the mysqldump command (See Post)
  4. Re-import the dumped data file to the new server using the mysql command (See Post)
  5. Log into the production server and run the following two SQL lines:
    1. update wp_posts set post_content = replace(post_content,’DEVSERVERURL‘,’PRODSERVERURL‘);
    2. update wp_options set option_value = replace(option_value,’DEVSERVERURL‘,’PRODSERVERURL‘);
  6. Log into WordPress Admin and double check all the general settings (if you use nextgen you have to re-input everything manually)
  7. Turn off your Dev server (This one is key so you know that you can see if you have any image or anything references pointed back to your old server)

Add iFrame to WordPress

Wow I finally figured out how to get an iframe into a wordpress post:

First edit your functions.php file for your theme and add this code snippet:

function field_func($atts) {
   global $post;
   $name = $atts['name'];
   if (empty($name)) return;
   return get_post_meta($post->ID, $name, true);
}
add_shortcode('field', 'field_func');

Then when writing your post put a custom field in with the title of iframe and for the value put the whole iframe code! This will save me tons of headaches

50px-Edit-find-replace.svgThe other day I had to move a blog from one server to another and found out that WordPress sometimes likes to hard code the server address into things like links and images.  I found this handy little SQL statement you can run to find and replace anything that you need changed:

update [Table] set [Column] = replace([column],’[old text]‘,’new text’);

This can save you a lot of heart ache dealing with moving servers and find out that you have a lot of broken images left after migration.

2009-04-03_084118So last night I was bored and decided to redo my entire website (again). I just changed the theme about a week ago, but the more I dug into it the less I liked it and decided I would spend a little more time redoing my blog. After picking a theme I put it on a local copy of WordPress and started banging away. I started changing header images and fixing CSS issues with AJAX overlaps and image overlaps and fixing up a few other issues I noticed.  This is usually pretty typical for themes I have found in the past.  You get what you paid for and because all these themes are free I guess that would make sense.

One of my co-workers turned me onto Firebug which is a Firefox plugin that reads the CSS and breaks it out into a tree structure so you can see what is really going on behind the scenes with formatting.  This application saved me probably about 2 days of frustration searching through the CSS and the PHP files trying to find the correct classes and div’s to edit to make it look how I want it to.  The program allows you to edit the CSS on the spot so you can see if what you thinking works…this is great for things like spacing or overflow or text size.  This application is a must have for any web developer or anyone who likes to tweak their WordPress themes to get the most out of them.

2009-03-16_154225For some reason some of my sites always freeze with the flash uploader, and chances are if I am bulk uploading I will just upload via FTP.  I searched around for a long time for a plugin that would control the default uploader for WordPress and finally found it.  You can change it via the plugin WP-CMS Post Control it does a little more than just change the default uploader but it does work.

2009-02-25_095650I just came across another site with some fancy WordPress Themes: WPDaddy can never have too many sites to choose from when looking for a good template.  Now I just need to find an easy CSS editor to play with the templates a little easier

arahualpaWell in helping my sister with her new website she came across a theme that I haven’t really looked at too much.  This theme basically has all the options that a premium paid theme does but doesn’t cost a single dollar.  It is available on the WordPress theme directory at WordPress.org It is great all the settings are under a page that comes up under the presentation button in WordPress.  From there you can control all the CSS settings.

The settings allow you to change the layout from fluid to set, you can change the colors super easily, you can change the number of columns in a click of a page.  Also the header is a rotating image and looks at a specific folder so you can rotate image headers super easily.  Also sections are super easy to hide just by setting values to zero

Not that it is very difficult to do this yourself with the CSS file but this makes things really really easy to modify a site (ie…making it quick!).  I am currently using it on two of my sites (BloomIntoYoga, JMRossPhotography Blog)  Chances are I would have done my ARP site that way if I would have known about this theme earlier!

Atahualpa 3.2 Theme

More WordPress Themes

2009-02-18_200150Yup….another day another wordpress theme site!

FreeLayouts.com

2009-02-02_091012I wanted to wait until someone actually submitted a form using this plugin before I wrote about it.  This plugin allows you to create contact forms, or any forms really, inside WordPress.  It allows you to choose all the basic stuff like checkboxes, input fields, radio buttons and has a nice little CAPTCHA addon.  To create the forms it is more or less drag and drop onto a new form.  It also allows you to control the messages that come back when required fields are missing or if the form went through successfully.  Then inside WordPress Admin you can view all submitted forms in a nice little table and export all form submissions.  You also have the ability to push the submitted form to an email address and you can specify an SMTP server to use or you can just rely on sendMail function of PHP.  I would suggest using the SMTP settings as this will insure that your email does not hit spam filters of the receiving email box.  So far this plugin has worked out great for my ARP website as it has cut down on all spam by 100% and we are now getting more complete information thanks to the form validation features and it is all contained inside WordPress.

The homepage for the plugin is sort of interesting as it is a food website but if you read the content you will notice you are in the right place.  I would highly suggest this plugin for anyone who needs a form inside their WordPress Blog.

Cforms

WordPress Role Manager

2009-01-27_211815Well now that I have converted ARP’s website to use WordPress as the CMS I wanted to create users that could edit and write pages and do nothing with the rest of the website.  The default roles that WordPress comes with do not allow for this type of customization out of the box.  Well after some searching I found a Plug-in to do the management for me.

This plug-in is ajax controlled so as you click it to check the box it happens automatically.  I was able to create a new role and assign the privileges as needed and I think that it is going to work.

I have attached the plug-in to this post for reference.

Role Manager 2.2.3