I’ll be working on the necessary filters so you can make the changes you need through your functions file. in the meantime…
****
Beware that any new update will wipe your edits so save a copy of your changes.
***
Goto the plugin via FTP easy-property-listings/lib/meta-boxes/meta-boxes.php
all the category options are from line 28 to 170. All you need to do is replace the text for property/rental
$opts_property_category = array(
'House' => 'House',
'Unit' => 'Unit',
'Townhouse' => 'Townhouse',
'Villa' => 'Villa',
'Apartment' => 'Apartment',
'Flat' => 'Flat',
'Studio' => 'Studio',
'Warehouse' => 'Warehouse',
'DuplexSemi-detached' => 'Duplex Semi-detached',
'Alpine' => 'Alpine',
'AcreageSemi-rural' => 'Acreage Semi-rural',
'Retirement' => 'Retirement',
'BlockOfUnits' => 'Block Of Units',
'Terrace' => 'Terrace',
'ServicedApartment' => 'Serviced Apartment',
'Other' => 'Other'
);
The left hand side is the program written style (no spaces no accent characters) the right hand side is what the user sees from the admin/front end.
So for another language you would modify the text to:
** Changing the left hand colum may cause other issues which we will address while creating the filters, if so just change the right hand column:
$opts_property_category = array(
'Casas' => 'Casas',
'Departamentos' => 'Departamentos',
'Oficinas' => 'Oficinas',
'Comercio' => 'Comercio',
'Condominios' => 'Condominios',
'Industrias' => 'Industrias',
'Hoteles' => 'Hoteles',
'Terrenos' => 'Terrenos',
'Urbanizaciones' => 'Urbanizaciones'
);
We are working on the filters this week and will push out an update, so you can filter these out with a mini plugin/child theme.
what you will add to your functions file is something like
function epl_custom_replace_property_type() {
$opts_property_category = array(
'Casas' => 'Casas',
'Departamentos' => 'Departamentos',
'Oficinas' => 'Oficinas',
'Comercio' => 'Comercio',
'Condominios' => 'Condominios',
'Industrias' => 'Industrias',
'Hoteles' => 'Hoteles',
'Terrenos' => 'Terrenos',
'Urbanizaciones' => 'Urbanizaciones'
);
}
add_filter ( 'epl_property_meta_filter_property_types' , 'epl_custom_replace_property_type' );
Changing Property name and slug to Casa/ other
Also we are adding a filter to change the Custom Post type names eg: “property”, “rental”, “land” etc
For noe you can edit the file in easy-property-listings/lib/post-types/post-types-property.php
Modify the labels from LINE 17 $labels = array(….)
to line 30
Modify the custom post slug name (pretty url) /property/ to /casa/
change
'rewrite' => array( 'slug' => 'property' ),
to
'rewrite' => array( 'slug' => 'casa' ),
Do not change LINE 50 as that is the program name and will break the plugin,
Please rate the plugin on WordPress 😉
Subscribe to Easy Property Listings so we can let you know about new releases and when this is added http://easypropertylistings.com.au/#newsletter