Query Post Not Working

Support MB Views Query Post Not WorkingResolved

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #41595
    zenjukai@gmail.com[email protected]
    Participant

    Hey folks,

    Am I missing something here? Very basic query based off the links generated with Views:

    <!-- Blog Query -->
    <section class="blog-wrapper">
        <div class="blog-inner">
            {% for post in query.posts %}
                <div class="blog-item">
                    <figure class="blog-img">
                        <img src="{{ post.thumbnail.large.url }}" width="{{ post.thumbnail.large.width }}" height="{{ post.thumbnail.large.height }}" alt="{{ post.thumbnail.large.alt }}">
                    </figure>
                    <h2 class="blog-title">
                        <a href="{{ post.url }}">{{ post.title }}</a>
                    </h2>
                    <a href="{{ post.url }}">Read More</a>
                </div>
            {% endfor %}
        </div>
    </section>

    But the output shows the "blog-title" as the page and the "link" as the page url.

    Thoughts?

    Cheers

    #41596
    zenjukai@gmail.com[email protected]
    Participant

    Update: Nevermind the post -- I see what the issue was.

    I was trying to apply this to a single page and not an archive. I needed to use the custom query and now all works just fine.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.