Revision: 27606
Updated Code
at October 28, 2010 19:15 by themolitor
Updated Code
<?php
$temp = $wp_query;
$wp_query= null;
$wp_query = new WP_Query();
$wp_query->query('category_name=blog&showposts=1'.'&paged='.$paged);
while ($wp_query->have_posts()) :
$wp_query->the_post();
?>
<!--THIS IS THE POST CONTENT-->
<?php
endwhile;
$wp_query = null;
$wp_query = $temp;
?>
Revision: 27605
Updated Code
at October 28, 2010 19:14 by themolitor
Updated Code
<?php
$temp = $wp_query;
$wp_query= null;
$wp_query = new WP_Query();
$wp_query->query('category_name=blog&showposts=1'.'&paged='.$paged);
php while ($wp_query->have_posts()) :
$wp_query->the_post(); ?>
<!--THIS IS THE POST CONTENT-->
<?php
endwhile;
$wp_query = null;
$wp_query = $temp;
?>
Revision: 27604
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at June 17, 2010 14:55 by themolitor
Initial Code
<div class="listing">
<?php
$temp = $wp_query;
$wp_query= null;
$wp_query = new WP_Query();
$wp_query->query('category_name=blog&showposts=1'.'&paged='.$paged);
?>
<?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
<?php $data = get_post_meta( $post->ID, 'key', true ); ?>
<div <?php post_class(); ?>>
<?php include("firstimage.php"); ?>
<?php include("thumbnail.php"); ?>
<h2 class="posttitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
<p class="metaInfo">
<small><?php the_time('F j, Y') ?> | Submitted by <?php the_author_posts_link(); ?> | <?php comments_popup_link('No Comments', '1 Comment', '% Comments'); ?></small>
</p>
<p class="grey"><?php the_content_rss('', TRUE, '', 55); ?> <a href="<?php the_permalink() ?>">Continue Reading ››</a></p>
<div class="clear"></div>
</div><!--end post-->
<?php endwhile; ?>
<?php include("navigation.php"); ?>
<?php $wp_query = null; $wp_query = $temp;?>
</div><!--end listing-->
Initial URL
Initial Description
Initial Title
WordPress: Custom Loop w/ Pagination
Initial Tags
Initial Language
PHP