Hi there, so I have a custom post type of 'Projects'. And Projects have a taxonomy of 'Category'.
I am using MB Views to create a grid which loops through all of my 'Project' posts and displays dynamic data from each post. I can display core fields (such as title and content), as well as custom fields, without any problems.
However, when it comes to displaying the category for the post, it doesn't work. If I click 'Insert Field', then 'Post Term List', this is the code which gets generated into my view:
{{ mb.get_the_term_list( post.ID, 'category', '', ', ' ) }}
In the front end, it does display the category, however it has an <a>
wrapped around it. I only want to display the value of the category string, NOT the link to it.
I have checked the documentation for MB Views, and there seems to be nothing on this issue.
I saw in a different thread that Metabox support suggested to use 'mb.get_the_terms()' instead, however that does not work either, that just displays 'Array' on the front end.
Please can you tell me how to display the value of the category taxonomy of the current post in my loop, in MB Views? And please add something to explain this to your documentation - as this really should be a very simple process, and something which I imagine a lot of people also need to do, so I don't know why this is not documented or made a lot easier to do in MB Views.
Many thanks for your help,
Keith