Listable show distance

mgibbs189

{{gist file=”gistfile1.txt” lang=”text”}}
To display the distance on the listing cards, they added it to:

wp-content/themes/listable/job_manager/content-job_listing.php file, right before </footer>.

<div class=”facet-distance”>
<?php $distance = facetwp_get_distance();
if ( false !== $distance ) {
echo round( $distance, 2 );
}
?>
</div>

It returns the numeric distance if the proximity facet is in use, or FALSE.

To keep the changes they recommended inserting them into a child theme. So they sent me the child theme which I installed and enabled. After enabling the child theme I removed the snippet from wp-content/themes/listable/job_manager/content-job_listing.php
{{/gist}}