Skip Navigation

[Résolu] Unable to populate options in search form select field

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

Problem:
The issue here was that the user wanted to create a custom search archive but set it up incorrectly so the filters didn't have any value in them.

Solution:

The correct way to setup your CPT archive can be done by following the instructions in our documentation below.
https://toolset.com/documentation/user-guides/normal-vs-archive-views/

This support ticket is created Il y a 6 années et 9 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.

Aucun de nos assistants n'est disponible aujourd'hui sur le forum Jeu d'outils. Veuillez créer un ticket, et nous nous le traiterons dès notre prochaine connexion. Merci de votre compréhension.

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)

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

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

Assisté par: Shane.

Auteur
Publications
#618690

I am trying to: populate options in search form select field with stored values

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

I expected to see: The "year" select field populated with some values already stored such as 2017 o 2018

Instead, I got: no options in select field

Any help, please?

#618787

Shane
Supporter

Les langues: Anglais (English )

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

Hi Igor,

Thank you for contacting our support forum.

Would you mind providing me with admin access tot he website so that I can have a look at this for you ?

The private fields will be enabled for your next response.

Thanks,
Shane

#618973

Shane
Supporter

Les langues: Anglais (English )

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

Hi Igor,

Thank you for the credentials.

I was able to resolve the issue. What I did was to create a custom archive separately and then assign this custom archive to the layout that you had created.

Please let me know if this helps.

Thanks,
Shane

#619012

OK thanks. But I don't understand the difference between a archive dd_layout and view_archives. Any example? I have a little mess now after changes you made