DEAR CUSTOMERS,

First of all we apologize for the delay in assisting you in the past. We have just undergone a major personnel change and have instead prepared a new plan to support better development to deliver a better quality service to all of our customers.

From May 1, 2021, we will migrate to the customer support and management system on the new platform. You can submit a support request, come up with ideas for a custom request if you want. All in one platform. We always acknowledge all of your comments.

You can register your customer account here with your purchase code: https://sfwebservice.com/envato-register/

Or you also possible register new account as a customer without purchase code https://sfwebservice.com/register/

Again apologize for the delay in the past time. We're back for a better service mission.

THANK YOU VERY MUCH!

SFWebservice Team

Okay
  Print

Custom Related Properties

Question : Now on a property for sale, shows as related properties, properties for rent

Related Properties default show property same type with current property 

If you want show Related Properties same status you can follow custom code 

go to location file 

+ plugins\iwproperty\includes\class\property.class.php line 469 

http://prntscr.com/oiqbbi

remove old code 

function get_related( $args = array() ) {
        $limit_item_related = iwp_option('limit_item_related');
        $id = $this->get_id();
        $type = $this->get_type();
        $default_args = array(
            'posts_per_page' => $limit_item_related,
            'post_type' => 'iwp_property',
            'post_status' => 'publish',
            'post__not_in' => array($id),
        );
        if($type){
            $default_args['tax_query'] = array(array(
                'taxonomy' => 'iwp_type',
                'field'    => 'term_id',
                'terms'    => $type->term_id
            ));
        }
        $args = wp_parse_args($args, $default_args);
        $properties = new WP_Query( $args );
        return $properties;
    }

add new code 

function get_related( $args = array() ) {
        $limit_item_related = iwp_option('limit_item_related');
        $id = $this->get_id();
        $type = $this->get_type();
        $status = $this->get_status_obj();
        $default_args = array(
            'posts_per_page' => $limit_item_related,
            'post_type' => 'iwp_property',
            'post_status' => 'publish',
            'post__not_in' => array($id),
        );
        if($type){
            $default_args['tax_query'][] = array(array(
                'taxonomy' => 'iwp_type',
                'field'    => 'term_id',
                'terms'    => $type->term_id
            ));
        }
        if($status){
            $default_args['tax_query'][] = array(array(
                'taxonomy' => 'iwp_status',
                'field'    => 'term_id',
                'terms'    => $status->term_id
            ));
        }
        $args = wp_parse_args($args, $default_args);
        $properties = new WP_Query( $args );
        return $properties;
    }