Viewing 1 replies (of 1 total)
  • Plugin Author Greg Winiarski

    (@gwin)

    Hi, it is possible, the easiest way to do that is to use the Custom Fields add-on https://wpadverts.com/extensions/custom-fields/, the more complicated way is to use the adverts_form_load filter

    
    add_filter( "adverts_form_load", "customize_adverts_add" );
    function customize_adverts_add( $form ) {
      if( $form['name'] != "advert" ) {
        return $form;
      }
      foreach( $form["field"] as $key => $field ) {
        if( $field["name"] == "_contact_information" ) {
          $form["field"][$key]["order"] = 15;   
        }
        if( $field["name"] == "_adverts_account" ) {
          $form["field"][$key]["order"] = 15;   
        }
        if( $field["name"] == "adverts_person" ) {
          $form["field"][$key]["order"] = 16;   
        }
        if( $field["name"] == "adverts_email" ) {
          $form["field"][$key]["order"] = 17;   
        }
        if( $field["name"] == "adverts_phone" ) {
          $form["field"][$key]["order"] = 18;   
        }
      }
      return $form;
    }
    

    The code you can add in your theme functions.php file.

Viewing 1 replies (of 1 total)

The topic ‘Input fields order change’ is closed to new replies.