Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added functionalities #237

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Added functionalities #237

wants to merge 6 commits into from

Conversation

pomatio
Copy link

@pomatio pomatio commented Jul 26, 2016

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.

@sanghamitra2
Copy link

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.

@mehmetsarr
Copy link

mehmetsarr commented May 4, 2020

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

@mehmetsarr
Copy link

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' )
											 );	

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants