• Would like to add the location category to the results layout. We are using the enhanced results premium add-on and adding categories using the Tagalong add-on. I was able to make the category icon appear and that works fine. However, we would like to be able to list the category name in the results box as well. Here is the code we currently have in Enhanced Results – Results Layout textbox:

    <div id="slp_results_[slp_location id]" class="results_entry [slp_location featured]">
    <div class="results_row_left_column" id="slp_left_cell_[slp_location id]" >
    <span class="location_name">[slp_location name]</span>
    <span class="location_distance">[slp_location distance_1] [slp_location distance_unit]</span>
    [slp_location iconarray wrap="fullspan"]
    </div>
    <div class="results_row_center_column" id="slp_center_cell_[slp_location id]" >
    <span class="slp_result_address slp_result_street">[slp_location address]</span>
    <span class="slp_result_address slp_result_street2">[slp_location address2]</span>
    <span class="slp_result_address slp_result_citystatezip">[slp_location city_state_zip]</span>
    <span class="slp_result_address slp_result_country">[slp_location country]</span>
    <span class="slp_result_contact slp_result_directions"><a href="http://[slp_option map_domain]/maps?saddr=[slp_location search_address]&daddr=[slp_location location_address]" target="_blank" class="storelocatorlink">[slp_location directions_text]</a></span>
    </div>
    <div class="results_row_right_column" id="slp_right_cell_[slp_location id]" >
    <span class="slp_result_contact slp_result_website">[slp_location web_link]</span>
    <span class="slp_result_contact slp_result_email">[slp_location email_link]</span>
    <span class="slp_result_address slp_result_phone">[slp_location phone]</span>
    <span class="slp_result_address slp_result_fax">[slp_location fax]</span>
    <span class="slp_result_address slp_result_category">[slp_location category]</span>
    <span class="slp_result_contact slp_result_hours">[slp_location hours]</span>
    [slp_location pro_tags]
    [slp_location socialiconarray wrap="fullspan"]
    </div>
    </div>

    Any tips, help, or gentle push in the right direction would be great. Was thinking we might have to write an extension to the plug-in. But if there is an easier work-around, we’d love to hear about it.

    Thanks.

    https://ww.wp.xz.cn/plugins/store-locator-le/

The topic ‘Adding Category to results’ is closed to new replies.