<?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

  • one
    <?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 Shimansky
  • @ AlekseyShimansky I did right as you wrote, but all that changed at the end was added "-" maybe you need to write something else? - Mikhail Volkov
  • one
    So something you did not finish)) Or, for example, in the_listing_categories you do not have a return .... for ideone.com/xZjMjz - Alexey Shimansky
  • @ Alexey Shimansky help please if this return is not there, how else can you do it? - Mikhail Volkov
  • one
    And how do you get the data Город, Район, ул. название-улицы, 14 Город, Район, ул. название-улицы, 14 , if the function returns nothing? .......... You need your full php code ...... including the the_listing_categories function 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

0