Add taxonomies

Forums › Forums › Search & Filter Pro › Add taxonomies

Tagged: 

Viewing 2 posts – 1 through 2 (of 2 total)
  • Anonymous
    #245238

    How do I add taxonomies to a page and post?

    Trevor
    #245302

    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.

Viewing 2 posts – 1 through 2 (of 2 total)
Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.