I need to completely remove results from a specific category when showing results from a post type:
Example: My site is for a real estate and my category defines if a property is for rent or sale.
I need that on my view just to show results from sales.
I did this on my query, like you see in the capture, but still is showing rent category
I have just tested a similar filter in my local install and it worked well. Perhaps try to select the checkbox to be empty, and then mark it again.
If still not solved, we might be facing an interaction issue with a third-party functionality, in this case:
- Deactivate all the plugins that are not related to WPML
- Switch for a moment to a WordPress default theme like Twenty Twenty-one
- If the issue is gone, activate one by one to see with which one there is an interaction issue
Could you please tell me the results of this investigation? I'm looking forward to your reply.
Hi Mateus
Thanks for your reply
I did follow your instructions, but my issue persists.
Then I think maybe my issue is related to how I'm querying my results.
I've created a custom field name "featured property" (propiedad destacada) which organizes my results, so always I would like to see on top of results this featured properties.
When I have this featured property unchecked, it works, but when I have this option marked, even if the property is for rent, is showing on the results. So, how can I prevent this to happen?
I would like to request temporary access (wp-admin and FTP) to your site to take better look at the issue. You will find the needed fields for this below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.
Our Debugging Procedures
I will be checking various settings in the backend to see if the issue can be resolved. Although I won't be making changes that affect the live site, it is still good practice to backup the site before providing us access. In the event that we do need to debug the site further, I will duplicate the site and work in a separate, local development environment to avoid affecting the live site.
- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this: hidden link
Please, let me know if you need any additional details. Have a nice day.
It seems that the issue was occurring because the checkbox field 'Propiedad destacada' was marked as: 'When unchecked, save 0 to the database', while it should be: 'When unchecked, don't save anything to the database' , here: hidden link
We have corrected it and now it seems fine, please check it on this page we created as an example: hidden link
Please review it once more and let us know how it goes. Thank you!