How to update the post types options manually until the filters are created

Easy Property Listings WordPress Real Estate Plugin Forums Real Estate Formats: MLS, RETS, REAXML, JUPIX, Real, custom feeds How to update the post types options manually until the filters are created

Viewing 3 posts - 1 through 3 (of 3 total)

These forums are closed to new replies / tickets. Please open a support ticket from our new Support page.

  • Author
    Posts
  • #891
    Merv Barrett
    Keymaster

    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

    #1653
    easyprop
    Spectator

    thanks for info..
    by the way, how to change using week to day rate?
    manage to change here for backend.
    but fornt end, which file is tht?

    #1656
    Merv Barrett
    Keymaster

    Thanks i’ve added that to the development version on GitHub, working on the permalink issue.
    https://github.com/easypropertylistings/Easy-Property-Listings

    1.2 release almost ready, few more hours 🙂

These forums are closed to new replies / tickets. Please open a support ticket from our new Support page.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘How to update the post types options manually until the filters are created’ is closed to new replies.