Accessing WordPress $post variable data:
http://www.velvetblues.com/web-development-blog/wordpress-post-variable-reference/
Add this to functions.php to remove white space from around the_title() tag:
add_filter(‘wp_title’, create_function(‘$a, $b’,’return str_replace(” $b “,”",$a);’), 10, 2);
I use the following combination of tag generation code for this blog, I prefer it over any SEO plugins and it works well:
if(is_home()):?>
=get_bloginfo(“name”);?> | =get_bloginfo( “description” );?>
elseif(is_front_page()):?>
=get_bloginfo(“name”);?> | =get_bloginfo( “description” );?>
else: ?>
| =get_bloginfo( ‘name’ );?>
endif;?>
if(is_home()):?>
” />
elseif(is_front_page()):?>
” />
else: ?>
| =get_bloginfo( ‘description’ );?>” />
endif;?>
if(is_home()):?>
,internet consultant,internet consultant in china,china it professional,it support in china” />
elseif(is_front_page()):?>
,internet consultant,internet consultant in china,china it professional,it support in china” />
else: ?>
,= get_bloginfo( “name” );?>,internet consultant,internet consultant in china,china it professional,it support in china” />
endif;?>
Re-organize all posts if set by date (MySQL):
update wp_posts
set post_date = str_to_date(
concat(
floor(1 + rand() * (12-1)), /* Generate a random month */
‘-’,
floor(1 + rand() * (26 -1)), /* Generate a random day */
‘-’,
’2009′
),
‘%m-%d-%Y’
);