Reply To: POI List Template: Call from Custom Field

Home Forums MapPress Support POI List Template: Call from Custom Field Reply To: POI List Template: Call from Custom Field

#10179
Chris
Keymaster

    Hi,

    The release notes are very skimpy.  I’ll try to get the beta documentation done ASAP so you can see some examples.

    Basically, you can copy the ‘map-poi-list.php’ template file to your theme directory and then edit it, much like a regular blog template file.  It sounds like you’ve already done that.

    Then, assuming you’re using the default table layout, you could add the two columns like so:

    <?php if ($poi->postid): ?>
    	<td>   
    		<?php echo get_post_meta($poi->postid, 'wpcf-facility', true); ?>
    	</td>
    	<td>
    		<?php echo get_post_meta($poi->postid, 'wpcf-phone', true); ?>
    	</td>
    <?php endif; ?>

    If you like, send me an email and I’ll reply with the entire file.