Sauter la navigation

[Résolu] Custom field « in » filter with shortcode attribute parameter not working

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:

Customer mentioned that the "IN" comparison is not working for their view custom filter

Solution:

This setting is actually working. The problem was that the user was filtering for a field on a post type that doesn't have that custom field.

This support ticket is created Il y a 6 années et 4 mois. There's a good chance that you are reading advice that it now obsolete.

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 14:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Jamaica (GMT-05:00)

Marqué : ,

Ce sujet contient 3 réponses, a 2 voix.

Dernière mise à jour par vimalS Il y a 6 années et 4 mois.

Assisté par: Shane.

Auteur
Publications
#1115501
Screenshot_1.png
Screenshot_4.png
Screenshot_5.png
Screenshot_6.png
Screenshot_8.png

I am trying to display case studies from the custom field(case study id) with allow multiple values added on home page.
I have created view to display case studies for the added 2 ids on home page

Link to a page where the issue can be seen:lien caché

I expected to see: 2 case studies

Instead, I got: no results found

Please check attached screen shots for the same.

#1115827

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hi Vimal,

Thank you for contacting our support forum.

I think there might be a plugin conflict here that is blocking the view query.

I checked the debug data for view and noticed that IN is not being added to the sql query for the view.

Could you temporarily disable all the non-toolset plugins and try again? However I suspect that this plugin might be the cause Intuitive Custom Post Order

Thanks,
Shane

#1115831

Shane
Supporter

Les langues: Anglais (English )

Fuseau horaire: America/Jamaica (GMT-05:00)

Hi Vimal,

It seems the actual issue is that the issue is that you were filtering for the custom field case-id instead of the post id for the cases.

I changed the filter to the post id so it should start working now.

Thanks,
Shane

#1116392

My issue is resolved now. Thank you!