Displaying Custom Taxonomy Field on Post

Support MB Views Displaying Custom Taxonomy Field on Post

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #46811
    CameronCameron
    Participant

    Hi, I would like to display data from a Custom Taxonomy's Custom Field on a Post that has that Custom Taxonomy assigned to it.

    For example:

    Custom Taxonomy: City
    Custom Taxonomy Field: Average Temperature

    Post has a City Taxonomy attached to it and intent is to display the Average Temperature related to that Taxonomy on the Post.

    Is this the appropriate use of Custom Taxonomy Fields?
    How do I display the data for it using MB Views if so?
    How do I display the data for a particular Custom Taxonomy if multiple of that Taxonomy are assigned to a Post? (Multiple Cities attached to post but want to show Temperature for 1 of them)

    #46825
    PeterPeter
    Moderator

    Hello,

    Is this the appropriate use of Custom Taxonomy Fields?

    You can use the field taxonomy of WordPress. It works the same as the Taxonomy meta box of WordPress to set the post terms.

    How do I display the data for it using MB Views if so?

    Please follow the documentation to use the View template to output the post data and custom fields
    https://docs.metabox.io/extensions/mb-views/

    How do I display the data for a particular Custom Taxonomy if multiple of that Taxonomy are assigned to a Post?

    If you want to display some specific terms in the frontend, you need to create some custom code to do so. If you are not able to complete the task, we offer a customization service with an extra fee. Please contact us here for more details https://metabox.io/contact/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.