Hi Luo,
Pls check my website with the credentials you have,
I am facing this below issue now.
My SELECT field District has 5 parts/fields , :
can I merge them into one ? using script perhaps ?
link for the post field: site.com/wp-admin/admin.php?page=wpcf-edit&group_id=15
Meaning when I select any one the rest should be disabled > this is for the backend.
At the search form: the output should be checkboxes instead of select, yes I am aware I could set this option but the result is not there,
Pls test select D02 and D15, the result is NONE but there should be output for this.
link: site.com/landed-house
WordPress archive : /wp-admin/admin.php?page=view-archives-editor&view_id=51
We discussed this before but we solve it with a custom hardcode html. but now we cant use that .
Thanks !
Hi is Mr Luo active today ?
Dear C6410,
Today we are overloaded, you will get the answer in few hours.
Noted Luo,
it's strange why it's not working out of the box and need custom adjustment, defeat the purpose of using this plugin.
Hi ,
can you try to explain to me some details at least so i can try my own first?
Could you describe the question with more details:
can I merge them into one ? using script perhaps ?
I can see you are using below codes:
Central Districts
...
[wpv-control-postmeta field="wpcf-central-region-districts" type="checkboxes" url_param="wpv-wpcf-central-region-districts"]
...
North Districts
...
[wpv-control-postmeta field="wpcf-east-region-districts" type="checkboxes" url_param="wpv-wpcf-east-region-districts"]
Are you going to merge field "wpcf-central-region-districts" and "wpv-wpcf-east-region-districts" into one custom field?
If it is, there isn't such a built-in feature within Views plugin, you will need do it manually within Types plugin:
Setup a custom field, with all options you needed.
Hi, i wont call it merge in fact,
There is 5 options for district, at the backend only 1 can be selected .
Next is the output itselves, its not displaying the result as logic,
Try select D02 and D15 you will get only D02 results.
Pls let me know if you need more informations.
It is you called it "merge" in the first post:
https://toolset.com/forums/topic/select-to-checkboxes/#post-541650
I tested your website:
hidden link
with below steps:
1) click " District Filter (Location) "
2) select only option "D02 Anson, Tanjong Pagar",
I get one result
3) select only option "D15 Katong, Joo Chiat, Amber Road",
I get empty result
4) select both options "D02" and "D15"
I get one result
Can you confirm above?
This is expected result, since there isn't any result for option "D15".
If it is not expected result, please point out which item should be displayed in the result?
Hi Luo,
as below.
D2 - 1 result
D16 -1 result
you can try D2 and D16 - should have 2 result, but now none.
I think i know the issue, when editing the custom field district, all the field value got messed. those added previously remain in list view but not attach at the backend.
i will try to check one by one and report if i need any more assistance.
OK, please update this thread when you need more assistance
OK. iv added all the value back , i only get result for one custom field.
test D02 - 1 result - ok
D16 - 2 result -ok.
when i click D2 and D16 i should get3 result but none for now. and there is strange search form output. not sure from there .
pls look into it, hope to move forward by tonight.
i think Luo , one of the way to approaches is to use OR function in the query filter. since can't use AND and OR same time, next approach is
1. use hard code HTML - since all district is fixed custom field data. OR
2. combine all into 1 field, " District " and separate manually by checkbox at the search form
whats your view ?
i've left the old hard coded HTML in the <!--commented block-->.
As you can see, there isn't such a built-in feature: use AND and OR same time. So you can try the one of options you mentioned above, in my opinion, I will try with a custom Hierarchical taxonomy, for example:
- Central Districts
-- D1
-- D2
...
- North Districts
-- D16
-- D17
...
See our document:
https://toolset.com/documentation/user-guides/create-custom-taxonomies/