The Listing Template
The listing template is very similar to the search template but gives you more information about the specific listing queried.
ListingPress will automatically use the listing.php template for any specific listing being queried if that file is located in your theme directory. Below are a list of functions you have at your disposal.
Outside the loop:
the_google_map('width','height');
previous_listings('Previous Listings');
next_listings('Next Listings');
Inside the loop:
the_listing_id();
the_address();
the_city();
the_state();
the_zip_code();
the_bedrooms();
the_bathrooms();
the_sales_price();
the_mls_id();
the_property_type();
the_sqft();
the_lot_size();
the_year_built();
the_status();
the_latitude();
the_longitude();
the_listing_permalink();
the_listing_photos('number','size');
the_remarks();
the_view();
the_construction();
the_exterior();
the_floors();
the_sewer();
the_water();
the_roof();
the_pool();
the_type();
the_kitchen();
the_laundry();
the_misc();
the_topography();
the_structure();
the_garage();
the_parking();
the_restrictions();
the_agent();
the_office();
the_dom();
the_listing_date();
the_hoa_fees();
the_sales_conditions();
the_special_features();
the_style();
the_fireplace();
the_other_rooms();
This is probably best illustrated with an example:
listing.php
<?php get_header(); ?>
<div id="content">
<?php if( have_listings() ): while( have_listings() ): the_listing(); ?>
<div id="<?php the_listing_id(); ?>" class="listing">
<?php the_listing_photos('0','small'); ?>
<h2><a href="<?php the_listing_permalink(); ?>"><? the_sales_price(); ?></a></h2>
<p class="address"><?php the_address(); ?><br />
<?php the_city(); ?><br />
<?php the_state(); ?>, <?php the_zip_code(); ?></p>
<p class="details">Beds: <?php the_bedrooms(); ?><br />
Baths: <?php the_bathrooms(); ?><br />
MLS ID: <?php the_mls_id(); ?><br />
Property Type: <?php the_property_type(); ?><br />
SQFT: <?php the_sqft(); ?><br />
Lot Size: <?php the_lot_size(); ?><br />
Year Built: <?php the_year_built(); ?></p>
<p><?php the_remarks(); ?></p>
<p class="specifics">The View Description: <?php the_view(); ?><br />
Construction Information: <?php the_construction(); ?><br />
Exterior Details: <?php the_exterior(); ?><br />
Floor Details: <?php the_floors(); ?><br />
Sewer Information: <?php the_sewer(); ?><br />
Water Details: <?php the_water(); ?><br />
Roof Description: <?php the_roof(); ?><br />
Pool Details: <?php the_pool(); ?><br />
Kitchen: <?php the_kitchen(); ?><br />
Laundry: <?php the_laundry(); ?></p>
<p>Provided By: <?php the_office(); ?></p>
</div>
<?php endwhile; ?>
<div class="navigation">
<div class="alignleft"><?php previous_listings('« Previous Listings') ?></div>
<div class="alignright"><?php next_listings('Next Listings »') ?></div>
</div>
<?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> <!-- //content -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>
