<?php the_listing_categories(); ?> In such a thing is stored the address of the organization in this format
City, District, st. street name 14
tell knowledgeable people how to derive only the city from this area and it can be done with the help of php functions let's say substr
<?php $arr = explode(',', the_listing_categories()); echo $arr[0].' - '.$arr[1]; ?><?php $arr = explode(',', the_listing_categories()); echo $arr[0].' - '.$arr[1]; ?>php.net/manual/ru/function.explode.php - Alexey Shimanskythe_listing_categoriesyou do not have areturn.... for ideone.com/xZjMjz - Alexey ShimanskyГород, Район, ул. название-улицы, 14Город, Район, ул. название-улицы, 14, if the function returns nothing? .......... You need your full php code ...... including thethe_listing_categoriesfunction that it does there ...... for it is unclear how you then you get the data yourself to manipulate them ......... edit the question, adding the necessary information - Alexey Shimansky