Your address will show here +12 34 56 78

Home Forums WP RESIDENCE – Real Estate WordPress Theme FORUM How Do I Remove the Category & City Listing from Property Post

This topic contains 3 replies, has 2 voices, and was last updated by  Anna 3 years, 2 months ago.

  • Author
    Posts
  • #55661

    Ajaya

    Hello folks,

    I’m trying to remove the category and city listing from beneath the property heading. How can that be done?

    When I deselect category and city, i’m left with commas and the word ‘in’.

    Please help.

  • #56343

    Anna
    Keymaster

    Hi Ajaya,

    As I replied via email

    Go to single-estate_property.php

    Look for

    < ?php print $property_category .' '.__('in','wpestate').' '.$property_action?>

    < ?php print esc_html( get_post_meta($post->ID, ‘property_address’, true) ). ‘, ‘ . $property_city.’, ‘.$property_area; ?>

    Delete what you don’t wish to show and save.

    Thank you
    Anna

  • #57173

    Paolo

    Is there a way to switch the how the category displays using the code?

    < ?php print esc_html( get_post_meta($post->ID, ‘property_address’, true) ). ‘, ‘ . $property_city.’, ‘.$property_area; ?>

    example. 100 washington street, brooklyn, new york becomes 100 washington street, new york, brooklyn.

  • #57733

    Anna
    Keymaster

    Hi Paolo,

    Of course.

    Replace the code and add area in front of city.

    The order changes based on the PHP order.

    Thank you
    Anna

You must be logged in to reply to this topic.