Advertisement
Guest User

tut-index

a guest
Apr 3rd, 2015
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.44 KB | None | 0 0
  1. /*begin header*/
  2. <html>
  3. <title><?php bloginfo('name'); ?><?php wp_title(); ?></title>
  4. <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  5. <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen, projection" />
  6.  
  7. <?php wp_head(); ?>
  8.  
  9. </head>
  10. <body>
  11. <div id="wrapper">
  12.   <div id="header">
  13.   <p class="description"><?php bloginfo('description'); ?></p>
  14.   <h1><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></h1>
  15.  
  16.   <ul id="nav">
  17.   <?php wp_list_pages('sort_column=menu_order&title_li='); ?>
  18.   </ul>
  19.   </div>
  20.  
  21. /*end header */
  22.  
  23. <div id="content">
  24.  
  25.   <?php if( have_posts() ) : while ( have_posts() ) : the_post(); ?>
  26.   <h2><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h2>
  27.   <?php the_content(); ?>
  28.  
  29.   <p><?php the_time('F j, Y'); ?> at <?php the_time('g:i a'); ?> | <?php the_catagory(, ); ?> | <?php comments_number('No comment', '1 comment', '% comments'); ?></p>
  30.  
  31.   <?php endwhile; else: ?>
  32.  
  33.   <h2>Whoops...</h2>
  34.   <p>Sorry, no posts we're found.</p>
  35.  
  36.   <?php endif; ?>
  37.  
  38.   <p align="center"><?php posts_nav_link(); ?></p>
  39. </div>
  40.  
  41. /* begin footer*/
  42. <div id="footer">
  43.  
  44.   <p>&copy <?php the_time('Y'); ?> <?php bloginfo('name'); ?><br />
  45.   <a href="<?php bloginfo('rss2_url'); ?>">Grab the feed</a></p>
  46.  
  47. </div>
  48.  
  49. </div>
  50.  
  51. <?php wp_footer(); ?>
  52. </body>
  53. </html>
  54. /*end footer*/
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement