This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Dec 22nd, 2011  |  syntax: None  |  size: 1.67 KB  |  views: 81  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2. /*
  3. Template Name: loop test
  4. */
  5. ?>
  6.  
  7.  
  8.  
  9. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  10. <html xmlns="http://www.w3.org/1999/xhtml">
  11.         <head>
  12.                 <title><?php
  13.                 global $page, $paged;
  14.                 wp_title( '|', true, 'right' );
  15.                 // Add the blog name.
  16.                 bloginfo( 'name' );
  17.                 // Add the blog description for the home/front page.
  18.                 $site_description = get_bloginfo( 'description', 'display' );
  19.                 if ( $site_description && ( is_home() || is_front_page() ) )
  20.                         echo " | $site_description";
  21.                 // Add a page number if necessary:
  22.                 if ( $paged >= 2 || $page >= 2 )
  23.                         echo ' | ' . sprintf( __( 'Page %s', 'twentyten' ), max( $paged, $page ) );
  24.                 ?></title>
  25.                 <meta name="description" content="" />
  26.                 <meta name="keywords" content="" />
  27.                 <meta name="format-detection" content="telephone=no">
  28.                 <meta http-equiv="Content-type" content="text/html; charset=utf-8" />  
  29.                 <link rel="icon"
  30.       type="image/png"
  31.       href="<?php bloginfo( 'template_url' ); ?>/favicon.ico">
  32.                 <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('template_directory'); ?>/blog.css" />
  33.                 <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('template_directory'); ?>/reset2.css" />
  34.                 <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.5.2/jquery.min.js"></script>
  35.                                 <script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/shaZAM.js"></script>
  36.                 </head>
  37.                 <body <?php body_class(); ?>>
  38.  
  39. <?php
  40. if( have_posts() ) {
  41.   while( have_posts() ) {
  42.     the_post();
  43.     ?>
  44.     <h2><?php the_title(); ?></h2>
  45.     <?php
  46.   }
  47. }
  48. ?>
clone this paste RAW Paste Data