Jump to content

Shortcode: City


www.HDsports.at

Recommended Posts

Hi,

i want to show an article with all listings in a city.

However, for my "City" field, I have the following schema.org output format:

<span itemprop="location" itemscope itemtype="http://schema.org/Place"><meta itemprop="name" content="{title}"/><span itemprop="address" itemscope itemtype="http://schema.org/PostalAddress"><span itemprop="addressLocality">{FIELDTEXT}</span></span></span>

This leads to the fact that now the shortcode does not work

in my case i tried with (jr_ort = City) following shortcode:

[jreviews type="listings" listing_order="jr_datum2022" columns="1" total="100" limit="100" show_numbers="1" show_category="0" fields="jr_datum2022,jr_datum2023,jr_startzeit,jr_distanz,jr_ort" custom_params="jr_ort=Huntsville&jr_datum2022=between_date_2022-01-01_2022-12-31" themelayout="61c744bb1d98d" extension="com_content']

i also tried it with

jr_ort=&Huntsville&

When i use

keywords=Huntsville

than i get only the listings which have Huntsville in the title. All other listings, which have city "Huntsville" but not "Huntsville" in the title will not be shown, even if i there is "Huntsville" in the keywords.

i tried it also with jr_latitude, jr_longitude und radius but i think this doesnt works with shortcodes, only with search.

here is an example of the problem:

https://www.hdsports.at/running/huntsville-races-running-calendar

actually i use the code with keywords

[jreviews type="listings" listing_order="jr_datum2022" columns="1" total="100" limit="100" show_numbers="1" show_category="0" fields="jr_datum2022,jr_datum2023,jr_startzeit,jr_distanz,jr_ort" custom_params="cat=23&keywords=%Huntsville%&jr_datum2022=between_date_2022-01-01_2022-12-31" themelayout="61c744bb1d98d" extension="com_content']

i have 4 results. but normally there should be 10 results (https://www.hdsports.at/suchen/tag/ort/huntsville?criteria=1

Any idea how i can solve it? Best regards, Tom

Link to comment
×
×
  • Create New...