• Anna
    June 16, 2014 at 7:02 am #42519

    NOTE: all these codes, you should manually type them and not copy paste as it’s possibly you’re copying wrong formatted characters.

     

    To change estate_property in URL http://wpresidence.net/estate_property/villa-on-washington-ave/

    go to folder libs – property.php

    look for these lines (are at the beginning)

    ‘public’ => true,
    ‘has_archive’ => true,
    ‘rewrite’ => array(‘slug’ => ‘properties’),

    Edit “properties” with your text. Save. Then go to Admin – Settings – Permalinks – Set Default – Save. Then set custom Save the current settings again.

    —————

    To change Property slugs (category, city, area and action).

    For Category, go to LIBS folder – property.php

    Look for this code

    ////////////////////////////////////////////////////////////////////////////////////////////////
    // Add custom taxomies
    ////////////////////////////////////////////////////////////////////////////////////////////////
    register_taxonomy(‘property_category’, ‘estate_property’, array(
    ‘labels’ => array(
    ‘name’ => __(‘Categories’,’wpestate’),
    ‘add_new_item’ => __(‘Add New Property Category’,’wpestate’),
    ‘new_item_name’ => __(‘New Property Category’,’wpestate’)
    ),
    ‘hierarchical’ => true,
    ‘query_var’ => true,
    ‘rewrite’ => array( ‘slug’ => ‘listings’ )
    )
    );

    Replace
    ‘rewrite’ => array( ‘slug’ => ‘listings’ )

    with
    ‘rewrite’ => array(‘slug’ => ‘property_category_changed’),
    )

    Replace property_category_changed with the new name.

    ———

    Repeat this for Action, Area and City (all in the same file).

    When you are done, change permalinks to default and then again to custom.

    —————

    To change AGENTS in URL http://wpresidence.net/agents/maria-barlow/

    Go to LIBS folder – agents.php file

    ‘rewrite’ => array(‘slug’ => ‘agents’)

    Edit “agents”. Then go to Admin – Permalinks and click the Save Button (for changes to take effect).

    —-HOW TO MAKE CHANGES IN CHILD THEME – from a client —-

    Ok, I’ve tried it. I’ve put the property.php in a child theme’s sub folder named “lib” (like the origininal one). Then I created a functions.php in the root of the child theme and added this code:

    <?php
    require_once ('libs/property.php');
    ?>

    And… that works! For othe files like agents.php, it surely works the same way.

    • This topic was modified 3 years, 1 month ago by  Anna.
    • This topic was modified 3 years ago by  Anna.
    • This topic was modified 2 years, 4 months ago by  Anna.
    • This topic was modified 2 years, 1 month ago by  Anna.
    • This topic was modified 2 years, 1 month ago by  Anna.
    • This topic was modified 1 year, 7 months ago by  Anna.
    • This topic was modified 1 year, 7 months ago by  Anna.
    Sargantana
    July 17, 2014 at 9:20 am #47980

    Hi Anna

    I changed property.php to

    ‘rewrite’ => array(‘slug’ => ‘inmuebles’)

    And it’s working fine: http://www.xxxxx.com/inmuebles/oficina-alfa

    But it’s not working when clicking on pin on Google map, url link appears as: http://www.xxxxx.com/properties/oficina-alfa, and shows “Page not found”.

    How can I ammend this?

    I’m using WP-Residence 1.03

    Thanks!

    Sargantana
    July 17, 2014 at 11:18 am #48007

    I’m sorry about this issue, Anna. I upgraded my theme from 1.02 to 1.03 and that overwrote my property.php and agents.php files.

    Thanks anyway. Problem solved!

    Wolfram
    October 28, 2014 at 12:57 pm #100372

    Hi Anna,

    is it possible, to use the property.php anywhere in the child theme folder, so that the changes are kept when updating the theme? Or is there any other solution for keeping the changes?

    Thanks
    Wolfram

    Anna
    October 28, 2014 at 1:23 pm #100383

    Hi Wolfram

    You can try that but you need to know how to work with code in child theme – I can only give wordpress help – http://codex.wordpress.org/Child_Themes

    Thank you
    Anna

    Wolfram
    October 28, 2014 at 1:41 pm #100394

    Hi Anna,

    thank you again. Your support ist fabulous 😉

    Ok, I’ve tried it. I’ve put the property.php in a child theme’s sub folder named “lib” (like the origininal one). Then I created a functions.php in the root of the child theme and added this code:

    <?php
    require_once ('libs/property.php');
    ?>

    And… that works! For othe files like agents.php, it surely works the same way.

    Nick
    March 4, 2015 at 1:32 pm #103943

    Thank you!

    Unfortunately it doesn’t work with libs/widgets/contact_widget.php.
    require_once 'libs/widgets/contact_widget.php';
    Any idea, why?

    Nick
    March 4, 2015 at 1:44 pm #103944

    Also this doesn’t work:
    require_once 'libs/widgets.php';

    mfalcuta
    June 30, 2015 at 6:43 pm #113616

    ‘rewrite’ => array(‘slug’ => ‘properties’)

    doesn’t appear in libs/property.php

    where can I change “properties”

    Anna
    July 1, 2015 at 7:18 am #113692

    Hi

    It’s in there – please look again. I made you a screenshot – http://i.imgur.com/rgw7JI2.png

    It’s after has_archive. This is the topic for Residence though. Hope you’re looking at the same theme.

    Anna

You must be logged in to reply to this topic.

Contact Us

We're not around right now. But you can send us an email and we'll get back to you, asap.