Skip to content

Instantly share code, notes, and snippets.

@jdleray
jdleray / gist:d5ae53a9f447e5b157ac
Last active August 29, 2015 14:01
Decimal place workaround for Pods
Latest update that works for now -
<ul><a href="{@detail_url}">{@name}</a> | <?php echo '$' . number_format( $obj->field( 'price' ), 0); ?> | {@123} </ul>
<div class="comm_sale">
<div> <b>{@name} </b></div>
<div>Property Address: {@property_address}</div>
<div>Price: {@price}</div>
<div>Building Size: {@building_size}</div>
<div>Lot Size: {@lot_size}</div>
<div>Property Type: {@property_type}</div>
<div>Sub-Types: {@sub_type}</div>
<div>Property Use: {@property_use}</div>
<div>Year Built: {@year_built}</div>
<?php
$id = pods_url_variable ('last');
$params = array(
'where' => 'permalink = "' .$id. '"');
echo pods ('commercial_sale') -> find ($params) -> template('commercial_sale_detail');