Passer la navigation

[Résolu] Taxonomy or separate custom fields

This support ticket is created Il y a 4 years, 8 months. 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.

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

Dernière mise à jour par Charles Il y a 4 years, 8 months.

Auteur
Publications
#2184033

Tell us what you are trying to do?
Hello, I need some advice on how to set up my toolset website. I have around 30 categories / occupations (such as plumber, home inspector, landscaper, real estate agent...) Eventually there will be thousands of different companies listed. So should I make each occupation a separate custom field, or make one field (such as find a pro) with all the occupations a separate taxonomy?

Is there any documentation that you are following?
No
Is there a similar example that we can see?
No

What is the link to your site?
lien caché

#2184399

Nigel
Supporter

Les langues: Anglais (English ) Espagnol (Español )

Fuseau horaire: Europe/London (GMT+01:00)

You should likely make a custom taxonomy for occupation, where plumber, home inspector etc. are terms of this taxonomy.

Then when you create posts (I'm guessing you'll have a custom post type for the company listings) you assign the relevant occupation term to the post.

You could have a custom field for this, but in WordPress taxonomies are much more effecient than custom fields if you later want to use them to filter posts (if you add a search page for the listings that includes an occupation filter, for example).

#2185019

My issue is resolved now. Thank you Nigel!