• Hi again,
    I am wondering how I can get a listing field, for example, price, to display on the custom template file I am using (single-rem_property.php) for single property view, using either PHP or a shortcode?

    • This topic was modified 5 years, 8 months ago by trulygood. Reason: clarity
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author rameez_iqbal

    (@rameez_iqbal)

    Hi, following URL will help you with this (under heading Using Custom Meta in Template Files)

    https://webcodingplace.com/real-estate-manager-custom-property-listing-styles/

    Regards

    Thread Starter trulygood

    (@trulygood)

    Hi Rameez,
    Thank you for the quick reply. That link helped and I got my single rem template file to pull in the property price BUT instead of displaying just that 1 property’s price, it is displaying a list of ALL properties in the system.

    Here is the relevant code in my single-rem_property.php file:

    <?php if( have_posts() ){ while( have_posts() ){ the_post(); ?>
    					
    						
    <header class="header"><h1 class="entry-title"><?php the_title(); ?></h1></header>
    <?php echo do_shortcode("[rem_list_properties style='1']"); ?>
    						<?php do_action( 'rem_property_ribbon', get_the_id(), 'single-page' ); ?>
    						<?php do_action( 'rem_single_property_contents', get_the_id() ); ?>
    						<?php do_action( 'rem_single_property_slider', get_the_id() ); ?>
    						
    					<?php } } ?>

    It pulls and displays ALL property prices, then displays only the 1 property details as expected.

    Here is the code in my style1.php file:

    <span class="price">
    		<?php if (get_post_meta( $property_id, 'rem_property_price', true ) != '') { ?>
    			<?php echo rem_display_property_sale_price($property_id); ?>
    		<?php } ?>
    	</span>
    Plugin Author rameez_iqbal

    (@rameez_iqbal)

    Well, you’re doing it wrong. I sending you an email explaining it.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Pulling in single fields into custom template’ is closed to new replies.