Sauter la navigation

[Résolu] Custom search not displaying any info

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

Problem:

Views with search form does not return any result.

Solution:

That view is using option "order by custom field Member name", but none of posts, has value in custom field "Member name", they are empty, that conducts the problem.

If you are going to order the results by a custom fields, all posts should have the value in that custom fields, this is a wordpress limitation

Relevant Documentation:

This support ticket is created Il y a 6 années et 3 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 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Hong_Kong (GMT+08:00)

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

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

Assisté par: Luo Yang.

Auteur
Publications
#1135500
2018-10-27_18-39-37.png
2018-10-27_18-39-21.png

I am trying to: implement a custom search on a website

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

I expected to see: some answers when I make either a selection or show all before I make a selection in the custom search areas (there are 2).

Instead, I got: Nothing other than the custom search view

#1135925

Hi,

Thanks for the details, I can login your website and see the problem, please edit your post view "Member Custom Search View", in section "Ordering", you are using option: order by custom field "Member name", but both in member posts, there aren't value in custom field "Member name", they are empty, that conducts the problem, if you are going to order the results by a custom fields, all posts should have the value in that custom fields, this is a wordpress limitation, in your case, you just need to switch to order by post title, and test again.

#1136053

My issue is resolved now. Thank you!