Wordpress

Syndicate content

Wordpress - List Scheduled Posts

If you ever wanted to show you readers posts that are scheduled to be published, here's how to do it.

<?php
$result = new WP_Query('post_status=future&order=DESC&showposts=5');
if ($result->have_posts()) {
    while ($result->have_posts()) : $result->the_post(); ?>
        <?php the_title(); ?>
    <?php endwhile;
}
?>
Blog Image: 
Wordpress - List Scheduled Posts

1 comments for Wordpress - List Scheduled Posts

WordPress - Disable Auto Save

WordPress's Auto-Save feature is a really nice but there are some drawbacks... this feature increases your database usage. So for those of you that are on really bad shared hosting accounts or just want to turn it off, here's a quick way of doing it.

Open and insert the following line in your wp-config.php file.

Blog Image: 
WordPress - Disable Auto Save

1 comments for WordPress - Disable Auto Save

Migrate Wordpress to a new Server or Directory

If you decide to change the URL or link location of your WordPress Blog due to a new domain or moving to a sub-directory, here are some simple steps that should be done to ensure proper migration without breaking links.

To update WordPress options with the new blog location, use the following SQL command:

Blog Image: 
Migrate Wordpress to a new Server or Directory

9 comments for Migrate Wordpress to a new Server or Directory

Wordpress - List your most popular Posts

This function below creates a list of links of the top commented posts on your Wordpress blog. It builds this list based on the posts that have the most comments. Place it in your footer or sidebar item!

Blog Image: 
Wordpress - List your most popular Posts

13 comments for Wordpress - List your most popular Posts

Wordpress - Embed Adsense in your posts

Adding Google Adsense to your blog's post is easy. No need to download and add another plugin to your Wordpress installation. Just follow these easy instructions! First, you have to add the following code to your theme's functions.php file.

Blog Image: 
Wordpress - Embed Adsense in your posts

4 comments for Wordpress - Embed Adsense in your posts

Wordpress - List the most recent comments

Easily list the most recent comments in a sidebar or a tab. The code below will list the 10 most recent comments. You can change the number displayed by changing the value of the variable, $intCommentLimit to list more or less comments

Blog Image: 
Wordpress - List the most recent comments

4 comments for Wordpress - List the most recent comments

Vista-like Ajax Calendar with Mootools

The Vista-like Ajax Calendar (vlaCalendar) is a unobtrusive web version of the slick and profound Windows Vista taskbar calendar, by using the Mootools Javascript Framework, AJAX, XHTML, CSS and PHP.

Key Features

  • Authentic Vista look-and-feel
  • Quick navigation by jumping back and forth between months, years and decades without drop-down boxes
  • Smooth transition animations
  • Customizable features
  • Lightweight
Blog Image: 
Vista-like Ajax Calendar with Mootools

4 comments for Vista-like Ajax Calendar with Mootools

Adding 301 Redirects using htaccess

It's easy adding 301 redirects to your website using Apache's htaccess. A 301 redirect is the most efficient and Search Engine Friendly method for web page redirection. It's not difficult to implement and will preserve your search engine rankings as well.

Often when someone does a redesign of their website or puts it into a new platform, and little consideration is regarded for the difference between the existing an new link structure. You should have a redirect in place if your old link structure varies from the new one. This will help you maintain you search engine rankings and decrease the possibility if someone reaching a 404 page.

Blog Image: 
Adding 301 Redirects using htaccess

2 comments for Adding 301 Redirects using htaccess