Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $paged = (get_query_var('paged')) ? get_query_var('paged') : 1;
- $args = array(
- 'cat' =>21,
- 'posts_per_page' => 999999,
- 'paged' => $paged,
- 'orderby' => 'meta_value',
- 'meta_query' => array(
- array(
- 'key' => 'title',
- 'type' => 'DECIMAL',
- )
- ),
- 'order' => 'ASC',
- );
- $the_query = new WP_Query($args);
- ?>
- <div id="listings">
- <?php if ($the_query->have_posts()) : ?>
- <?php while ($the_query->have_posts()): $the_query->the_post(); ?>
- <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
- <div class="title1 active_listing">
- <?php
- if (in_category('6')) {
- the_title();
- } else {
- ?>
- <a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a>
- <?php
- }
- ?>
- </div>
- <div class="alignleft thumb"><?php the_post_thumbnail('thumbnail'); ?>
- <br />
- </div>
- <div class="content"><?php the_excerpt(); ?> </div>
- <?php
- if (in_category('6')) {
- ?>
- <br />
- <?php
- } else {
- ?>
- <a href="<?php the_permalink() ?>" rel="bookmark"> View Details</a>
- <br />
- <?php
- }
- ?>
- </div>
- <?php endwhile; wp_reset_postdata();?>
- <?php else : ?>
- <h2 class="center">Not Found</h2>
- <p class="center">Sorry, but you are looking for something that isn't here.</p>
- <?php get_search_form(); ?>
- <?php endif; ?>
- </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement