Archive for the ‘Blogging tips’ Category

You are currently browsing the archives for the Blogging tips category.


Create a Static Home Page

Almost 90% of blogs use the list of most recent posts as a homepage. However, if you prefer to use a static page as a homepage, the choice is yours. This technique allows you to use WordPress and create different kinds of web sites—not only blogs.

The possibility of using a static page as a homepage is built-in in the WordPress—however, a lot of bloggers aren’t aware of it.

How to do it

Step 1: Log in to your WordPress Dashboard and create a page named Homepage and publish it.

Step 2: On your WordPress Dashboard, go to Settings | Reading. You’ll see a title saying Front page displays.

Step 3: Select the A static page radio button and choose your new front page from the drop-down list. If you please, you can also choose a new template for the posts to be displayed.

statichomepage

For more information check the WordPress Codex: http://codex.wordpress.org/Creating_a_Static_Front_Page

Restoring a Live Blog into a Local Development Blog

If you purchased the Intermediate WordPress: Installing a Development Blog, you now have an ‘empty’ blog that is setup locally on your home PC to use for development of themes, plugins, etc.

This is great, but you may need some actual content to test out all your theme or other changes. Creating ‘dummy’ content is one option, but it can take awhile to create and is not the same as the actual content that a ‘live’ blog contains.

So if you already have a blog online, you can follow these steps after you have your local environment (Apache, PHP, and MySQL) up and running (covered in the lesson).

Step 1: Create a backup from your current live blog.

  • Log into phpMyAdmin (from a web host account), and select the “Export” tab.
  • Select the database your WordPress blog uses.
  • Make sure the “SQL” radio button is selected.
  • Click the “GO” button.
  • A new screen will display with a textarea box containing many SQL statements. These will re-create your entire database, tables with content when executed.
  • Copy this script to your favorite text editor

Step 2: Modifying your backup script.

  • Since we are restoring to a database from a different blog, we have to ‘tweak’ it a bit (database name and url parameters).
  • Change name of the database to the database of your development blog. This should be the first command in the script starting with CREATE DATABASE.
  • There are two lines that you need to specify the url of your development (http://localhost/). Do a text search on the ‘wp_options’ table. You will need to change the parameters of two INSERT INTO statements (‘siteurl’ and ‘home’).

Step 3: Copy your blog folder structure.

  • Copy the entire folder struture (and all files) of your live blog to your root directory of your local Apache environment. You can create a subfolder in your root if you wish. I discuss where this location is in the lesson.
  • Once copied, open up the wp-config.php file and make the neccessary changes. This would involve changing the database name (DB_NAME), database user (DB_USER), and database password (DB_PASSWORD) and MySQL host (DB_HOST). I discuss this in the lesson as well.

Step 4: Execute your modified restore script.

  • Open up phpMyAdmin in your local environment
  • Select the “SQL” tab.
  • Paste the restore script in the textarea box.
  • Click the “Go” button.
  • Verify that the database and tables have been created.

Step 5: Open up your local blog

  • Go to your local blog that you just copied all the files to. This will be http://localhost/. You will specify the subfolder if you created that as well.
  • Log into you blog

Now you have an exact local copy of your live blog that you can develop and test.

Note: Since we didn’t change any other parameters in the restore script, some of your plugins may not work. Also, if you use custom permalinks, you may need to modify your .htaccess file. Change your permalinks to the default setting (Settings->Permalinks), if you cannot see certain pages in your local blog.

Importing and Exporting Content

WordPress features a very useful script to import your posts, comments, and links from another platform to WordPress. Of course, it is possible to export your current blog content.

To access the Import tool, log in to your WordPress Dashboard and click on Tools | Import located at the top of the screen. To access the Export tool, go to Tools | Export.

Importing content
WordPress is able to import your previous blog content and automatically create post with it. WordPress can import content from Dotclear, TypePad/Movable Type, LiveJournal, Greymatter, Textpattern, Blogware, and Blogger.

To import your content from another blogging platform, you have to follow a platform specific procedure.

Importing content from an export file
The blogging clients, namely, LiveJournal, MovableType/Typepad, Blogware, and WordPress allow you to export your content into an xml , opml , or txt file. Follow this procedure to import your content from one of these blogging platforms:

1. Connect to your old blog and export your content. Save the file on your hard drive.
2. Log in to your WordPress Dashboard, then go to Tools | Import.
3. Select the blogging platform from where you’re importing the content.
4. On the next page, click on the Browse button to select the exported file located in your hard drive.
5. Once done, click on the Upload file and import button.
6. You’re done! Please note that depending on your exported file size, this procedure can take a while.

Read the rest of this entry »

10 Reasons Why Niche Blogs Are Successful

Niche blogs are mini blogs/websites that are designed specifically to appeal to a very specific niche. Due to the size of the internet and the amount of content out there, niche blogs tend to be VERY specific.

My other website, JavaScript Workshop  could be considered a niche blog, but I expanded it to cover other topics other than “JavaScript”, but that is the general idea.  This blog you are reading now is a niche blog.

Look at the top 100 blogs as tracked by Technorati.com and you’ll find that the majority of them have a defined niche. Some niches are wider than others—but in nearly all cases they’ve carved out a niche for themselves.

There are many reasons why choosing a niche is important to building a successful blog, but here are a few (10 to be exact).
Read the rest of this entry »

20 Types of Blog Posts

One of the traps that some bloggers fall into is that their blogs often become quite one-dimensional in terms of the type of posts they write.

Mixing up the types of post that you write can add interest and character to your blog, which will help to keep readers over the long haul.  There are many types of posts that you might like to use—here are 20 to start experimenting with:
Read the rest of this entry »

Monetizing Directly with Advertising

Advertising is by far the most popular monetization method that bloggers use. After deciding whether to show ads, the next decision is which type. The most popular advertising system with bloggers is Google’s AdSense, but there are several other advertising system options (affiliate networks), including: