Support Forum
Hi guys,
I think that Twig is absolutely fantastic and I really want to learn it. However, I have great difficulty finding Twig code examples related to WordPress and Metabox, except for the basic stuff.
The documentation is quite limited.
<br>
<br>
/japan/
/japan/tokyo
/japan/yokohama
/australia/
/australia/sydney
In the loop, I would like to display "Tokyo", "Yokohama", "Sydney" but NOT "Japan" and "Australia".
Also, I would like to show only posts which have a checkbox checked.
I suppose it is done through this:
{% set args = { post_type: 'places', posts_per_page: -1 } %}
{% set posts = mb.get_posts( args ) %}
I just cannot find out how to filter the query by the parent/child status and checkbox status...
I would not like to bother the support with basic questions, but it's not easy to find such answers about Twig in the documentation or elsewhere on the Internet. I have spent hours searching, but the online materials about Twig in relation to WordPress & Metabox are very scarce. It's quite difficult to find the required "vocabulary" for slightly more advanced tasks.
Greetings,
Tom