Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Author agentevolution

    (@agentevolution)

    Yes it’s possible using a filter. The wp_listings_property_details is filterable so you could use add_filter to create your own details array.

    Just published an article on agentevolution.com on how to do this: https://www.agentevolution.com/how-to-2/change-wp-listings-property-details/

    Hey there.. I followed the instructions given above.. and that is fine.. and it worked on the listing pages.

    But I changed the fields from square feet to meters as we are in New Zealand and they are not being changed on the active listings page we have set up using the short codes provided.

    To make that view square meters as well.. do we need to only edit the wp-listings/includes/shortcodes.php or is there another file that we need to edit? Thanks in advance

    Can I also add.. that fields in the description have changed fine.. but the information under the main image has not. Below is a screenshot

    https://awesomescreenshot.com/0f637kfl7d

    I got it to work in the end.. just had to to edit the shorcode file.. looks like I am going to have also edit the archive template as well.

    Is there anyway that I can have all these changes in place and not lose them when an update is put in place?

    thanks in advance.. and if I need to open another thread please let me know.

    Cheers,

    Plugin Author agentevolution

    (@agentevolution)

    Yes, to change those you would need to make a custom shortcode and template file because if they are changed there is no way for us to programmatically know what is there and output it accordingly. Also, since you’re changing the label, you should also change the field name so it won’t be output with a mismatched label.

    As I mentioned, you’ll want to create your own files and include them in your theme, instead of editing the plugin, because when the plugin is updated you lost those changes.

    Template files (archive- and single-listing.php) can be easily customized by just placing your custom version in your theme folder. With the shortcode, you’ll need to copy that file into it’s own file, rename the shortcode to something like [custom_listings], and include the file from your theme’s functions.php.

    Ok great.. thanks for that.. so just to confirm.. any template files I just upload a copy of them info my theme files..do I need to change the name?

    With the shortcode file.. what do I place into the theme functions file? Thanks in advance

    Plugin Author agentevolution

    (@agentevolution)

    Template files – Just add to the theme folder, same name.
    Creating a custom shortcode is not relevant to this support topic and this topic has been marked resolved already. Please post a new topic.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Change Labels?’ is closed to new replies.