Skip Navigation

[Resolved] Custom field with more then 1 instance is not showing up in searchform

This support ticket is created 4 years, 6 months ago. 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.

No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.

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)

This topic contains 3 replies, has 2 voices.

Last updated by Luo Yang 4 years, 6 months ago.

Assisted by: Luo Yang.

Author
Posts
#1365753
chrome_2019-10-21_22-14-34.png
chrome_2019-10-21_22-13-50.png
chrome_2019-10-21_22-12-57.png
chrome_2019-10-21_22-12-47.png

I am trying to: build a custom search for my custom post type with custom fields. I have one custom field with two instances/inputs (Parameter). Because some Products will have 1,2 or 3 different Parameters. Now when i use this custom field in my search form, only the first instance will be displayed.

I expected to see: all the instances of this custom field in the searchform

Instead, I got: only the first instance will be displayed in the searchform

#1366055

Hello,

I assume we are talking about a custom multiple instances single line field.

I have tried it in my localhost, with a fresh WordPress + the latest version of Toolset plugins, it works fine, I can see all instances are displayed in search form.

So the problem you mentioned above is abnormal, please check these:
1) Make sure you are using the latest version of Toolset plugins, you can download them here:
https://toolset.com/account/downloads/

2) In case it is a compatibility problem, please deactivate all other plugins, deactivate all custom PHP/JS code snippets, and test again

3) If the problem still persists, please provide database dump file(ZIP file) of your website, also point out the problem page URL and view URL, I need to test and debug it in my localhost, thanks
https://toolset.com/faq/provide-supporters-copy-site/

#1367077

Thanks for the details, I am downloading the files, will update here if there is anything found

#1367089

Here are what I found:
Q1) Now when i use this custom field in my search form, only the first instance will be displayed.
Please try this:
Edit the post view "Produkte":
hidden link

in section "Benutzerdefinierte Sucheinstellungen", enable option "Ich möchte die individuellen Einstellungen manuell auswählen"-> enable option "Immer alle Werte für Eingaben anzeigen", and test again

Q2) One set to "only search form" and one only displaying the results.

Since the URL you mentioned above is archive page of "produkte", the spited normal post view won't work as expected.

You can follow our document to setup Views WordPress archive to customize the archive page:
https://toolset.com/documentation/user-guides/using-toolset-with-elementor-page-builder/design-archive-pages-for-custom-post-types/
Elementor templates do not allow you to design the archive pages for custom post types.

https://toolset.com/documentation/getting-started-with-toolset/customize-post-archives/designing-an-archive-without-any-page-builder/
Designing an Archive without any Page Builder

This ticket is now closed. If you're a WPML client and need related help, please open a new support ticket.