Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- require('wordpress/wp-blog-header.php');
- ?>
- <?php if (have_posts()) : ?>
- <?php if (($wp_query->post_count) > 3) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <h2 id="post-<?php the_ID(); ?>">
- <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
- <?php the_title(); ?></a></h2>
- <?php the_content() ?>
- <p class="postmetadata">
- Posted in <?php the_category(', ') ?>
- <strong>|</strong>
- <?php edit_post_link('Edit','','<strong>|</strong>'); ?>
- <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
- <?php endwhile; ?>
- <?php else : ?>
- <?php while (have_posts()) : the_post(); ?>
- <h2 id="post-<?php the_ID(); ?>">
- <a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>">
- <?php the_title(); ?></a></h2>
- <?php the_content() ?>
- <!-- Do your post footer stuff here for single post-->
- <?php endwhile; ?>
- <?php endif; ?>
- <?php else : ?>
- <!-- Stuff to do if there are no posts-->
- <?php endif; ?>
- <p class="postmetadata alt">
- <small>
- This entry was posted on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?>
- and is filed under <?php the_category(', ') ?>.
- You can follow any responses to this entry through
- the <?php comments_rss_link('RSS 2.0'); ?> feed.
- <?php
- if (('open' == $post->comment_status) && ('open' == $post->ping_status)) {
- // Both Comments and Pings are open
- ?>
- You can <a href="#respond">leave a response</a>, or
- <a href="<?php trackback_url(display); ?>">trackback</a>
- from your own site.
- <?php
- } elseif (!('open' == $post->comment_status) && ('open' == $post->ping_status)) {
- // Only Pings are Open
- ?>
- Responses are currently closed, but you can
- <a href="<?php trackback_url(display); ?> ">trackback</a>
- from your own site.
- <?php
- } elseif (('open' == $post->comment_status) && !('open' == $post->ping_status)) {
- // Comments are open, Pings are not
- ?>
- You can skip to the end and leave a response. Pinging is currently not allowed.
- <?php
- } elseif (!('open' == $post->comment_status) && !('open' == $post->ping_status)) {
- // Neither Comments, nor Pings are open
- ?>
- Both comments and pings are currently closed.
- <?php
- }
- edit_post_link('Edit this entry.','',''); ?>
- </small>
- </p>
- <p class="postmetadata">
- Posted in <?php the_category(', ') ?>
- <strong>|</strong>
- <?php edit_post_link('Edit','','<strong>|</strong>'); ?>
- <?php comments_popup_link('No Comments »', '1 Comment »', '% Comments »'); ?></p>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement