Title: xw7's Replies | WordPress.org

---

# xw7

  [  ](https://wordpress.org/support/users/xw7/)

 *   [Profile](https://wordpress.org/support/users/xw7/)
 *   [Topics Started](https://wordpress.org/support/users/xw7/topics/)
 *   [Replies Created](https://wordpress.org/support/users/xw7/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/xw7/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/xw7/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/xw7/engagements/)
 *   [Favorites](https://wordpress.org/support/users/xw7/favorites/)

 Search replies:

## Forum Replies Created

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/users/xw7/replies/page/2/?output_format=md) 
[→](https://wordpress.org/support/users/xw7/replies/page/2/?output_format=md)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[WooCommerce Stripe Payment Gateway] Custom Parameters (Desitnation, Application Fee)](https://wordpress.org/support/topic/custom-parameters-desitnation-application-fee/)
 *  Thread Starter [xw7](https://wordpress.org/support/users/xw7/)
 * (@xw7)
 * [7 years ago](https://wordpress.org/support/topic/custom-parameters-desitnation-application-fee/#post-11785890)
 * Hi [@shellbeezy](https://wordpress.org/support/users/shellbeezy/)
 * Thank you for your reply.
 * You are correct it is used for connect accounts, we have a main platform account
   with over 300 custom connect accounts and each one needs to have a fee deducted
   based on what we have agreed with them as we get volume pricing and we needed
   to send these values over as well which we have managed to do using the abstract
   file.
 * It’s quite unique what we were trying to do and understand the plugin isn’t exactly
   designed to do that but we wanted the latest version for SCA.
 * As we have managed to complete this task I will now mark it as resolved.
    -  This reply was modified 7 years ago by [xw7](https://wordpress.org/support/users/xw7/).
      Reason: Resolved
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CMB2] Repeatable Group Field Default Repeats](https://wordpress.org/support/topic/repeatable-group-field-default-repeats/)
 *  Thread Starter [xw7](https://wordpress.org/support/users/xw7/)
 * (@xw7)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/repeatable-group-field-default-repeats/#post-6965537)
 * No problem Michael, I’ll post both short term fix and final coding to help others.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CMB2] Repeatable Group Field Default Repeats](https://wordpress.org/support/topic/repeatable-group-field-default-repeats/)
 *  Thread Starter [xw7](https://wordpress.org/support/users/xw7/)
 * (@xw7)
 * [10 years, 6 months ago](https://wordpress.org/support/topic/repeatable-group-field-default-repeats/#post-6965532)
 * Thanks Michael,
 * I’ll write my own code to get this task done, just thought I’d ask incase it 
   already had this function.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CMB2] Input – onchange event?](https://wordpress.org/support/topic/input-onchange-event/)
 *  Thread Starter [xw7](https://wordpress.org/support/users/xw7/)
 * (@xw7)
 * [10 years, 10 months ago](https://wordpress.org/support/topic/input-onchange-event/#post-6663009)
 * I didn’t even know this was possible without hardcoding! Saved me a lot of time.
 * Keep up the good work, CMB2 is excellent.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Locator] Add More Search Fields](https://wordpress.org/support/topic/add-more-search-fields/)
 *  Thread Starter [xw7](https://wordpress.org/support/users/xw7/)
 * (@xw7)
 * [11 years ago](https://wordpress.org/support/topic/add-more-search-fields/#post-6416282)
 * Managed to fix it! Simple mistake to make, got it working now and it’s pulling
   it all in.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Locator] Add More Search Fields](https://wordpress.org/support/topic/add-more-search-fields/)
 *  Thread Starter [xw7](https://wordpress.org/support/users/xw7/)
 * (@xw7)
 * [11 years ago](https://wordpress.org/support/topic/add-more-search-fields/#post-6416280)
 * Kyle, we made the usual changes but assume we are going wrong somwhere as it 
   isnt working. We changed the following files and added into the sections stated–
   are we missing anything obvious?
 * Field is called property_bedrooms in the database and the file being pulled in
   is pyb but it doesn’t seem to pull the value through.
 * If we set the code below to the following manually it works property_bedrooms
   >= ‘3’
 * I have a feeling some of the edits below may not be required but trying everything
   to get it to work.
 * Any help would be appreciated.
 *     ```
       LocationSearch.php
   
       - Sanitize and set the user-submitted data
       'pyb' => sanitize_text_field($_POST['pyb']),
   
       - added this to SET QUERY DATA
       $this->query_data['pyb'] = $this->data['pyb'];
   
       - Added this to set the query
       AND property_bedrooms >= 'pyb'
       ```
   
 *     ```
       simple-locator-form.php / FORM
   
       <select name="pyb">
       <option value="1">1</option>
       <option value="6">6</option>
       <option value="9">9</option>
       </select>
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CMB2] Frontend Fields](https://wordpress.org/support/topic/frontend-fields/)
 *  Thread Starter [xw7](https://wordpress.org/support/users/xw7/)
 * (@xw7)
 * [11 years ago](https://wordpress.org/support/topic/frontend-fields/#post-6416664)
 * I’ve found another way around it, thank you for your help.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[CMB2] Frontend Fields](https://wordpress.org/support/topic/frontend-fields/)
 *  Thread Starter [xw7](https://wordpress.org/support/users/xw7/)
 * (@xw7)
 * [11 years ago](https://wordpress.org/support/topic/frontend-fields/#post-6416651)
 * Yes, we looked at that but couldn’t quite get what it was on about, at the moment
   it uses another plugin to create the form and submit the post and it works fine,
   we just need to pull in more fields using CMB2, we managed to get it working 
   correctly using the dashboard to submit the information but can’t get it on frontend.
   Below is the code to make it work on the backend, if you can give any pointers
   on how to get those fields on the front it would be much appreciated, we have
   access to the files but no sure how we get them all to work.
 * Thanks again.
 *     ```
       add_action( 'cmb2_init', 'wp_register_repeatable_group_field_metabox' );
       /**
        * Hook in and add a metabox to demonstrate repeatable grouped fields
        */
       function wp_register_repeatable_group_field_metabox() {
       	// Start with an underscore to hide fields from custom fields list
       	$prefix = '_wp_group_';
       	/**
       	 * Repeatable Field Groups
       	 */
       	$cmb_group = new_cmb2_box( array(
       		'id'           => $prefix . 'metabox',
       		'title'        => __( 'Add Rooms', 'cmb2' ),
       		'object_types' => array( 'property', ),
       	) );
       	// $group_field_id is the field id string, so in this case: $prefix . 'demo'
       	$group_field_id = $cmb_group->add_field( array(
       		'id'          => $prefix . 'demo',
       		'type'        => 'group',
       		'description' => __( 'Please add rooms below.', 'cmb2' ),
       		'options'     => array(
       			'group_title'   => __( 'Room {#}', 'cmb2' ), // {#} gets replaced by row number
       			'add_button'    => __( 'Add Another Room', 'cmb2' ),
       			'remove_button' => __( 'Remove Room', 'cmb2' ),
       			'sortable'      => true, // beta
       			// 'closed'     => true, // true to have the groups closed by default
   
       		),
              // 'on_front'        => true, // Optionally designate a field to wp-admin only
       	) );
       	/**
       	 * Group fields works the same, except ids only need
       	 * to be unique to the group. Prefix is not needed.
       	 *
       	 * The parent field's id needs to be passed as the first argument.
       	 */
       	$cmb_group->add_group_field( $group_field_id, array(
       		'name'       => __( 'Room Name', 'cmb2' ),
       		'id'         => 'room_name',
       		'type'       => 'text',
       		// 'repeatable' => true, // Repeatable fields are supported w/in repeatable groups (for most types)
       	) );
           $cmb_group->add_group_field( $group_field_id, array(
       		'name'       => __( 'Room Length', 'cmb2' ),
       		'id'         => 'room_length',
       		'type'       => 'text',
       		// 'repeatable' => true, // Repeatable fields are supported w/in repeatable groups (for most types)
       	) );
           $cmb_group->add_group_field( $group_field_id, array(
       		'name'       => __( 'Room Width', 'cmb2' ),
       		'id'         => 'room_width',
       		'type'       => 'text',
       		// 'repeatable' => true, // Repeatable fields are supported w/in repeatable groups (for most types)
       	) );
       	$cmb_group->add_group_field( $group_field_id, array(
       		'name'        => __( 'Description', 'cmb2' ),
       		'description' => __( 'Write a short description for this entry', 'cmb2' ),
       		'id'          => 'description',
       		'type'        => 'textarea_small',
       	) );
               $cmb_group->add_group_field( $group_field_id, array(
       		'name' => __( 'Entry Image', 'cmb2' ),
       		'id'   => 'image',
       		'type' => 'file',
       	) );
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Locator] Add More Search Fields](https://wordpress.org/support/topic/add-more-search-fields/)
 *  Thread Starter [xw7](https://wordpress.org/support/users/xw7/)
 * (@xw7)
 * [11 years ago](https://wordpress.org/support/topic/add-more-search-fields/#post-6416147)
 * We are able to update the search Query and PHP just need to know which files 
   control the search. We have managed to update the SQL to include more fields 
   from database but only if input manually into SQL Query. When we try and pull
   in the value from the form it doesn’t pull our extra values in, only the values
   from your initial fields which made us think there is another file controlling
   what is pulled through the form. Hope this makes sense.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Simple Locator] Add More Search Fields](https://wordpress.org/support/topic/add-more-search-fields/)
 *  Thread Starter [xw7](https://wordpress.org/support/users/xw7/)
 * (@xw7)
 * [11 years ago](https://wordpress.org/support/topic/add-more-search-fields/#post-6416132)
 * Thanks for your response Kyle, which file(s) control the search fields as we 
   have managed to add more select boxes but the values are not pulling through 
   at the moment and is pinging back as null.
 * Any help would be appreciated.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Easy Property Listings] Frontend Submission](https://wordpress.org/support/topic/frontend-submission-1/)
 *  Thread Starter [xw7](https://wordpress.org/support/users/xw7/)
 * (@xw7)
 * [11 years ago](https://wordpress.org/support/topic/frontend-submission-1/#post-6370471)
 * Is it possible to hide certain parts of the property submission on the front-
   end for example we dont want to allow the end user to add files and links and
   some others.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Easy Property Listings] Frontend Submission](https://wordpress.org/support/topic/frontend-submission-1/)
 *  Thread Starter [xw7](https://wordpress.org/support/users/xw7/)
 * (@xw7)
 * [11 years ago](https://wordpress.org/support/topic/frontend-submission-1/#post-6370384)
 * Any help would be much appreciated on this one.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Easy Property Listings] Front-End](https://wordpress.org/support/topic/front-end-20/)
 *  Thread Starter [xw7](https://wordpress.org/support/users/xw7/)
 * (@xw7)
 * [11 years ago](https://wordpress.org/support/topic/front-end-20/#post-6345207)
 * True to your word it’s been fixed! Thank you again Merv, couldn’t recommend your
   plugin/service more highly! Second to none!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Easy Property Listings] Custom Fields](https://wordpress.org/support/topic/custom-fields-175/)
 *  Thread Starter [xw7](https://wordpress.org/support/users/xw7/)
 * (@xw7)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/custom-fields-175/#post-6333592)
 * Managed to fix this on my own. Thank you.
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Easy Property Listings] Listing Unlimited](https://wordpress.org/support/topic/listing-unlimited/)
 *  Thread Starter [xw7](https://wordpress.org/support/users/xw7/)
 * (@xw7)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/listing-unlimited/#post-6333491)
 * Thanks Merv,
 * I am not importing at the moment, but may need to in the near future.
 * [http://easypropertylistings.com.au/docs/epl_listing_meta_boxes-filter-all-available-meta-fields/](http://easypropertylistings.com.au/docs/epl_listing_meta_boxes-filter-all-available-meta-fields/)
 * The link above was exactly what I was looking for at the minute! Thank you.

Viewing 15 replies - 1 through 15 (of 21 total)

1 [2](https://wordpress.org/support/users/xw7/replies/page/2/?output_format=md) 
[→](https://wordpress.org/support/users/xw7/replies/page/2/?output_format=md)