Cisco HTML WSUS Android (1)
Bootstrap (1)
Certification (3)
Cisco (1)
Database (3)
Development (2)
Digital Photography (1)
Freeware (2)
General (14)
git (1)
HTML (2)
Javascript (1)
Linux (6)
MCSE (3)
Microsoft (6)
MySQL (2)
Network (4)
Office Suite (2)
Oracle (1)
PHP (2)
scripting (2)
Security Threats (1)
SEO (1)
Software (2)
Spyware (1)
Training (1)
Utilities (1)
Virus (1)
Web Development (2)
Word Press (1)
WP-Syntax (1)
WP-Theme (2)

WP Cumulus Flash tag cloud by Roy Tanck and Luke Morton requires Flash Player 9 or better.

Recent Posts

Code swiped from http://wordpress.org/support/topic/list-all-posts-on-a-page-split-them-by-year

<?php
// Get years that have posts
$years = $wpdb->get_results( “SELECT YEAR(post_date) AS year FROM wp_posts WHERE post_type = ‘post’ AND post_status = ‘publish’ GROUP BY year DESC” );

// For each year, do the following
foreach ( $years as $year ) {

// Get all posts for the year
$posts_this_year = $wpdb->get_results( “SELECT ID, post_title FROM wp_posts WHERE post_type = ‘post’ AND post_status = ‘publish’ AND YEAR(post_date) = ‘” . $year->year . “‘” );

// Display the year as a header
echo ‘<h2>’ . $year->year . ‘</h2>’;

// Start an unorder list
echo ‘</ul>’;

// For each post for that year, do the following
foreach ( $posts_this_year as $post ) {
// Display the title as a hyperlinked list item
echo ‘<li><a href=”‘ . get_permalink($post->ID) . ‘”>’ . $post->post_title . ‘</a></li>’;
}

// End the unordered list
echo ‘</ul>’;
}
?>