15 Reasons Why Your Company Needs a Blog

Going up green 256What is a Blog?

Blog is short for weblog. It is a type of site that provides commentary or information about a particular subject. The content is displayed in reverse chronological order. Other forms of blogs include diaries and photoblogs. Some popular blogging platforms are WordPress and Blogger. A more comprehensive definition can be found at Wikipedia.

Below are some of the reasons your company needs a blog:

  1. Fresh content – Fresh and up-to-date content leads to a more successful website.
  2. Increase your traffic from search engines – Content is King. Google loves fresh content and original content written on a consistent basisy. Blogging software such as WordPress is very optimized for the search engines already.
  3. Get more sales – Plug your own products or services.
  4. Increase traffic to your website – Link to your website within posts while plugging your products or services. Don’t overdo it. The Google gods will strike down on you if you do it to frequently.
  5. Be known as an expert in your field – by writing posts (articles) about your interests in your field.
  6. Keep in touch and in front of your clients with RSS – If you write interesting posts and frequently enough, people will subscribe to your blog through RSS. RSS allows readers to have your posts sent to them via their RSS reader or email. RSS is usually built into the blog already. If not, install plug-ins such a feedburner feedsmith.
  7. Backlinks - Other bloggers and websites will link to your posts.
  8. Be sociable – Blogs such as WordPress have numerous plug-ins so you can link or display your social profiles from Facebook, Twitter, LinkedIn and many more.
  9. Be more personable – Your company becomes humanized. By reading your posts, clients will get to know you better.
  10. Educate clients on your products or services – A how-to section will cut down on customer support or pre-sales questions.
  11. Announce new products and services – Keep customers informed.
  12. Company news – Keep customers up-to-date with happening in your company.
  13. Customer interaction – Customers can participate in your blog by leaving comments and questions.
  14. Free publicity – A newspaper may cover your business in a story because of #5 above.
  15. You can do it all without the help of a webmaster.

How Not to Display the “Home” Title on your WordPress Website

This article will show you how to remove the page title form the home page, but display it on all of the other pages. This is very useful if you are using WordPress as a content management system (CMS). It assumes that you are using a static home page, which you configured in your WordPress Admin under Reading.

First, open up page.php. You can find it under wp-content -> themes -> yourtheme.

Look for the title tag. It should look something like this:

<h2><?php the_title(); ?></h2>

Change to this:

<?php
				// let's generate info appropriate to the page being displayed
				if (is_front_page()) {
				        // we're on the home page, so let's not show page title
				        echo "";
				} else {
				        // catch-all for everything else (archives, searches, 404s, etc)
				        echo "<h1 class=\"title\">";
				        the_title();
				        echo "</h1>";
				} // That's all
				?>

Let’s walk through it. The first if statement tells WordPress that if this is the front page don’t display the page title. The else statement tells WordPress that if this is not the front page, display the page title. I also changed the header tag to an H1, instead of an H2. If you change it to an H1, remember to change your CSS.

How to Create Multiple Widgetized Sidebars in WordPress

Sometimes a client’s WordPress website requires different sidebars for each page. There are multiple ways to do this, but most are sloppy and require the client to remember too many steps. This method requires only changing 2 files, a little PHP and is much easier to use for the client. This assumes you are including

<?php get_sidebar(); ?>

in your template pages.

To keep it simple we will assume that we only have 3 pages on the website. A home page, about page and contact page.

First of all, open up your sidebar.php file. It should look something like this.

			<?php 	/* Widgetized sidebar, if you have the plugin installed. */
					if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : ?>
			<?php endif; ?>

Change it to this.

			<?php 	

			/* Widgetized sidebar*/
			if ( is_page(array('home') ) ){
				if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar_home') ) : endif; 

			}elseif ( is_page('about') ){
				if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar_about') ) : endif; 

			}elseif ( is_page('contact') ){
				if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar('sidebar_contact') ) : endif;  

			}else{
				if ( !function_exists('dynamic_sidebar') || !dynamic_sidebar() ) : endif; 

			}

			?>
         

Let’s walk through this. The first statement reads, if the page is “home” then use sidebar_home. The second and third statements refer to the “about” page and the contact “page” respectively. The last line states that if the page is not any of these then display the default sidebar.

The second file we need to change is the functions page. It may look something like this.

<?php
if ( function_exists('register_sidebar') )
    register_sidebar(array(
        'before_widget' => '<li id="%1$s" class="widget %2$s">',
        'after_widget' => '</li>',
		'before_title' => '<h2 class="widgettitle">',
        'after_title' => '</h2>',
    ));

Change it to this:

<?php
if ( function_exists('register_sidebar') )
    register_sidebar(array(
        'before_widget' => '<li id="%1$s" class="widget %2$s">',
        'after_widget' => '</li>',
		'before_title' => '<h2 class="widgettitle">',
        'after_title' => '</h2>',
    ));

    register_sidebar(array('name'=>'sidebar_home'
    ));

    register_sidebar(array('name'=>'sidebar_about'
    ));

    register_sidebar(array('name'=>'sidebar_contact'
    ));

The above code is telling WordPress the sidebars we want to use.

Here is how it should look in the admin panel, except without so many sidebars. this is a screenshot of a client’s admin area.
sidebar_screenshot

Now all the client needs to do is drag and drop widgets into whatever page they desire.

My next post will be on how to add to this code, so you can display sidebars for different categories and archives.

Top 7 WordPress Plugins

WordPress Plugins

WordPress Plugins

Every time we use WordPress for a client’s website or blog, there are several plugins we always install. Below is the list:

All in One SEO Pack – A great Search Engine Optimization plugin. It has some great features. You can tweak each page/post title, meta description and keywords or you can have the plugin auto generate each of these for you.

WP Security Scan – This plugin will scan your WordPress site for security vulnerabilities and suggest what to do if found. It will check your file permissions, database settings, hide your WordPress version, has a password generator and more.

WP-DBManager – Plugin allows you to backup your WordPress database, schedule database backups, optimize your database, schedule database optimization, repair your database, restore your database, drop and empty tables and run queries.

Google XML Sitemaps – Another great plugin for SEO. It will create a Google sitemaps compliant XML-Sitemap of your WordPress blog. Everytime you edit or create a post, your sitemap is updated and all major search engines that support the sitemap protocol, like ASK.com, Google, Bing and YAHOO, are notified about the update.

Exclude Pages from Navigation – Sometimes you don’t want specific pages displaying in the main navigation. Each page has a checkbox to include the page. If you uncheck the box, the page will not display in the navigation.

Sociable – Automatically ads links to social and bookmarking websites on pages and posts. You can disable it for pages if you like. The plugin comes with 99 social and bookmarking sites including Facebook, Twitter and Digg.

Yet Another Related Posts Plugin – Displays related posts at the bottom of your post using an advanced algorithm.

These are the essentials we install for every WordPress plugin. Of course we install others if needed for added functionality or requested by the client.