Custom Fields
Re-Envisioned
Support MB Views Custom post types or taxonomies not showing in MB View

  • Creator
    Topic
  • #19031
    Resolved SAND
    Participant

    Hello,
    I’m trying to use Views to display custom taxonomy terms on the homepage.
    But when I click on “Insert field” only post fields are showing, custom post types or taxonomies are not shown.
    Do you know why the fields of custom post types or taxonomies are not showing?

    Thanks in advance,
    Sandra

Viewing 4 replies - 11 through 14 (of 14 total)
  • Author
    Replies
  • #19121
    SAND
    Participant

    Ok, thanks Long for all your good and quick answers!
    Highly appreciated.

    #19164
    SAND
    Participant

    Thanks!
    With some trial and error I managed to add the links to the term archive.
    I’ve used the following code:

    
    {% set terms = mb.get_terms( 'symptoom' ) %}
        {% for term in terms %}
         {% set termlink = mb.get_term_link(term)%}
            <a href="{{termlink}}">{{term.name}}</a> ,
        {% endfor %}
    

    It works, but I’m not sure if this is the best way to write the code.
    So, please show me if I should write it differently.

    #19172
    Long Nguyen
    Moderator

    Hi,

    Yeah, the code shows the terms of symptoom and link to the archive page as well. Keep up the good work.

    #19182
    SAND
    Participant

    Thanks, with your help I’m learning to use Metabox.io and I’m finding out it can really do a lot! Next thing I’m going to use is MB Relationships and MB Admin Columns.

Viewing 4 replies - 11 through 14 (of 14 total)
  • You must be logged in to reply to this topic.