Skip Navigation

[Resolved] Search field options not showing in archive

This support ticket is created 3 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/Karachi (GMT+05:00)

Author
Posts
#1811071

Hi. I'm trying to add some search dropdowns at the top of my archive page.

I've added the dropdowns following your tutorial but when I view frontend, the dropdown menus contain no choices.

Yet, on the back-end it indicates visually they will.

hidden link

#1811113
#1813679

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi,

Thank you for waiting.

Based on reviewing your website's current setup and performing some tests on my website, this is what I'll recommend.

At the moment, the "Machine Types" post type is set to only hold a single custom field "Product Type" and it is linked to "Listings" post type, through a one-to-many relationship.

To be able to search the listings posts based on "Product Type", you can instead register a custom taxonomy "Product Type" and attach it directly to the "Listings" post type.
( from WP Admin -> Toolset -> Taxonomies )

As a result, you'll no longer need a seperate post type "Machine Types", its custom field "Product Type" or its relationship with listings. This will be simpler in terms of data entry too, since you'll not have to fill the same text like "Trailers" in two places, once as a "Machine Types" post's title and then as a custom field value for "Product Type" in it.

I hope this helps and please let me know if you need any further assistance around this.

regards,
Waqar

#1813691

Thanks Waqar,

That sounds like a good way forward which I'll try.

With 'manufacturer', this was also a separate post type so I could bring in the logo of each manufacturer to display on each listing. Would recommend that I turn 'manufacturer' into a taxonomy also?

If I did this, how would I then get the appropriate to logo shown on each listing?

Regards,
Josh.

#1817521

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

Hi Josh,

Thanks for the update and glad that it makes sense.

Yes, it would be a good idea to convert "manufacturers" into a custom taxonomy too.

You can register custom fields with taxonomies the same as with post types and users from WP Admin -> Toolset -> Custom Fields.

For storing logo information with each taxonomy term, you can register an image field with the newly created "manufacturers" taxonomy.

regards,
Waqar

#1817827

Thanks Waqar.

And presumably this would be done by adding some custom code to functions.php, yes?

#1819757

Waqar
Supporter

Languages: English (English )

Timezone: Asia/Karachi (GMT+05:00)

> And presumably this would be done by adding some custom code to functions.php, yes?

- If you're referring to my recommendation of storing logo information with each taxonomy term in the custom field, then no you won't need custom code for this.

After registering the "Manufacturer" custom taxonomy, you can go to WP Admin -> Toolset -> Custom Fields and switch to "Term fields", to attach an image field with this taxonomy for logo.
( screenshot: hidden link )

#1819915

Thanks for this useful info. I'll give that a go. Many thanks.

#1819917

My issue is resolved now. Thank you!

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