Skip Navigation

[Resolved] Avoid to show category results in a view showing post type

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 4 replies, has 2 voices.

Last updated by Mateus Getulio 1 year, 9 months ago.

Assisted by: Mateus Getulio.

Author
Posts
#2593355
Captura de Pantalla 2023-04-13 a la(s) 22.22.00.png
Captura de Pantalla 2023-04-13 a la(s) 22.21.41.png
Captura de Pantalla 2023-04-13 a la(s) 22.20.05.png

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

Please help

#2593881

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

Thanks for your contact.

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.

Thank you,
Mateus.

#2596545

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?

Thanks in advance!

#2596625

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello,

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.

Privacy and Security Policy

We have strict policies regarding privacy and access to your information. Please see:
https://toolset.com/privacy-policy-and-gdpr-compliance/#data-shared-with-our-support
**IMPORTANT**

- 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.

#2599305

Mateus Getulio
Supporter

Languages: English (English )

Timezone: America/Sao_Paulo (GMT-03:00)

Hey there,

Thanks for providing the credentials.

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!