wp-advanced-search icon indicating copy to clipboard operation
wp-advanced-search copied to clipboard

Added functionalities

Open pomatio opened this issue 8 years ago • 3 comments

We added/edited some functionalities of the plugin.

All changes were tested using AJAX, so they may not work as expected when not using AJAX.

Some changes may not be done on the proper file, but they worked for us.

pomatio avatar Jul 26 '16 16:07 pomatio

Hi,

How add meta_query? please check below code:

$args['wp_query'] = array( 'post_type' => array( 'dwb_properties' ), 'posts_per_page'=>'20', 'order' => 'DESC', 'meta_key' => 'price', 'orderby' => 'meta_value_num', 'meta_query' => array( array( 'key' => 'property_type', 'value' => 'Bungalow', 'compare' => 'LIKE', ), ) );

meta query not working.

sanghamitra2 avatar May 16 '19 14:05 sanghamitra2

Hello I want to add a custom meta box, how can I show the form?

mehmetsarr avatar May 04 '20 14:05 mehmetsarr

I added such a meta box. This time it gives the error "Warning: trim () expects parameter 1 to be string, array given in C: \ xampp \ htdocs \ projem2 \ wp-includes \ class-wp-meta-query.php on line 695".

        $args ['fields'][] = array('type' => 'meta_key',
		                                    'post_type'      => 'ilanlar',
		                                     'label' => 'İç Özellikler',
                                             'format' => 'checkbox',
                                             'meta_key' => 'menkul_ic_ozellikler',
											 'compare' => 'LIKE',
                                             'data_type' => 'ARRAY<CHAR>',
                                             'relation' => 'AND',
                                             'value' => array('celikkapi' => 'Çelik Kapı', 'amerikanmutfak' => 'Amerikan Mutfak' )
											 );	

mehmetsarr avatar May 12 '20 07:05 mehmetsarr