- This topic has 1 reply, 2 voices, and was last updated 6 years, 1 month ago by .
Viewing 2 posts - 1 through 2 (of 2 total)
Viewing 2 posts - 1 through 2 (of 2 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Add taxonomies
Tagged: Taxonomies
In general, it is not good practice (and can cause issues) to add a taxonomy to more than one post type. So WordPress ships with Categories and Tags attached to ‘Posts’. Both of these are actually taxonomies with special names and purpose within WordPress. Whilst I do see sites that then also assign these Categories and Tags to ‘Pages’. That is not a good idea.
You can make custom taxonomies (and assign them to a custom post type) using this plugin:
https://wordpress.org/plugins/custom-post-type-ui/
You can also make custom post types with that plugin. When you make a custom taxonomy, find the option to make it Hierarchical and set that to true.
If you need to share terms between more than one Post Type, instead use a custom field. This plugin can be used for that:
https://wordpress.org/plugins/advanced-custom-fields/
You make a field group, assign it to the Post Types you want, then make the fields.
In selecting the Meta Key name, note a ‘gotcha’ with ACF ….
… it makes 3 meta keys per field, like this (in this example for a field named ‘land’):
#1 _land
#2 field_52f0fc4334f52
#3 land
In our Meta Key selection list, you need to use key #3, without the underscore at the start of the key name. If you choose #1 by mistake, in the field choices you will see the name of #2.