WordPress.org

Ready to get started?Download WordPress

Forums

  1. graphical_force
    Member
    Posted 1 year ago #

    How can we display a property attribute group on the frontend?

    I'm using this code:

    <?php if ( empty($wp_properties['property_groups']) || $wp_properties['configuration']['property_overview']['sort_stats_by_groups'] != 'true' ) : ?>
    								  <ul id="property_stats" class="<?php wpp_css('property::property_stats', "property_stats overview_stats list"); ?>">
    									<?php if(!empty($post->display_address)): ?>
    									<li class="wpp_stat_plain_list_location alt">
    									  <span class="attribute"><?php echo $wp_properties['property_stats'][$wp_properties['configuration']['address_attribute']]; ?><span class="wpp_colon">:</span></span>
    									  <span class="value"><?php echo $post->display_address; ?>&nbsp;</span>
    									</li>
    									<?php endif; ?>
    									<?php @draw_stats("display=list&make_link=true&exclude={$wp_properties['configuration']['address_attribute']}"); ?>
    								  </ul>
    								<?php else: ?>
    								  <?php if(!empty($post->display_address)): ?>
    								  <ul id="property_stats" class="<?php wpp_css('property::property_stats', "property_stats overview_stats list"); ?>">
    									<li class="wpp_stat_plain_list_location alt">
    									  <span class="attribute"><?php echo $wp_properties['property_stats'][$wp_properties['configuration']['address_attribute']]; ?><span class="wpp_colon">:</span></span>
    									  <span class="value"><?php echo $post->display_address; ?>&nbsp;</span>
    									</li>
    								  </ul>
    								  <?php endif; ?>
    								  <?php @draw_stats("display=list&make_link=true&exclude={$wp_properties['configuration']['address_attribute']}"); ?>
    								<?php endif; ?>

    Thanks.

    http://wordpress.org/extend/plugins/wp-property/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

  • RSS feed for this topic
  • Started 1 year ago by graphical_force
  • This topic is not resolved
  • WordPress version: 3.4.2

Tags

No tags yet.