I need to have preselected first option in the radiobutton set. So I am using jQuery code. But how to display results with filters that are preselected with the jQuery on the first load of the page (search results are updated every time an input changes with AJAX). Or is there any other way how to simply preselect option?
So the search page now has preselected radiobuttons, which are working now. But the search results will display twice. Once like they are not selected and then after some miliseconds it will reload again with the preselected buttons. Isn´t there any other option which can ensure that the search page will load imediatelly with the selected options? See hidden link
If you do not know how to do it, please feel free to share access details and I'll add the required filter for you.
*** Please make a FULL BACKUP of your database and website.***
I would also eventually need to request temporary access (WP-Admin and FTP) to your site. Preferably to a test site where the problem has been replicated if possible in order to be of better help and check if some configurations might need to be changed.
I would additionally need your permission to de- and re-activate Plugins and the Theme, and to change configurations on the site. This is also a reason the backup is really important. If you agree to this, please use the form fields I have enabled below to provide temporary access details (wp-admin and FTP).
I have set the next reply to private which means only you and I have access to it.
In addition to this, I just checked that you are using the checkboxes field for the "wpcf-vhodne-pro" and for that you want to pre-filter the view with the value "Začátečníky".
Checkboxes fields are stored with special format as serialized array and that is why we will not be able to add the pre-filter on it. I suggest you should convert your custom field "wpcf-vhodne-pro" to taxonomy and then we will be able to filter the results.
Once you change the custom field to taxonomy, please let me know, I will share the code to pre-filter the results before view load on page.