Tuesday, October 26, 2010

some wp function code

<?php the_post_thumbnail(array(327,218));?>


<?php the_content_rss('', TRUE, '', 50); ?>

Monday, October 11, 2010

Here's an example of a correctly-formatted HTML5 compliant head area:(WP)

<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head> <meta charset="<?php bloginfo( 'charset' ); ?>" />
<title><?php wp_title(); ?> <?php bloginfo('name'); ?></title>
<link rel="profile" href="http://gmpg.org/xfn/11" />
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>
</head>