Support Forum » User Profile

Forum Replies Created

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • in reply to: MB Views doesn't show data in front #40782
    MilosMilos
    Participant

    Hello Peter thanks for help,
    After reading documentation that you shared I manage to get data that I wanted.
    I will share here code if somebody have similar problem.

    <h3>TEST Tiketi</h3>
    
    {% set args = { post_type: 'ticket', posts_per_page: -1 } %}
    {% set posts = mb.get_posts( args ) %}
    {% for post in posts %}
    
        {# Tickets: #}
        {% set tickets = mb.rwmb_meta( 'ticket', '', post.ID ) %}
    	
    		{% for ticket in tickets %}
    
    		 {# {{ ticket.team_1 | json_encode(constant('JSON_PRETTY_PRINT')) }}  #}
    
    		 <br>
    		 {{ ticket.team_1 }} 
    		 <br>
    		 {{ ticket.team_2 }} 
    		 <br>
    		{{ ticket.prediction }} 
    		 
    		{% endfor %}
    
    			<div><hr></div>	
    
       
    {% endfor %}
    in reply to: MB Views doesn't show data in front #40764
    MilosMilos
    Participant

    Hi Peter thank you for your replay, yes everthing looks correct but still is not working.

    I will share with you here few screenshots, I hope it can help:

    https://postimg.cc/gallery/0sghV0B

    If I try to output anything from {% for clone in post.ticket %} I always get Null

Viewing 2 posts - 1 through 2 (of 2 total)