Support Forum
I have custom taxonomy 'collections'. For each collection in requested array of collections I want to display a number of custom posts associated with that collection. I searched through docs and found no clue. Can I directly employ PHP code in MBView, or I need to stick to Twig?
I created an MBView with
{% set args = {taxonomy: 'collection',hide_empty: false,include:9,10,109,111} %} //only for certain collections array of IDs
{% set collections = mb.get_terms( args ) %}
{% for collection in collections %}
<div class="background-collection">
<div class="collection_name">
<div>Collection</div><br>
<h2>{{ collection.name }}</h2>
<div class="button">View: _COUNT SHOULD BE HERE SOMEHOW_ models </div>
</div>
</div><!-- end of background-collection -->
{% endfor %}