Fields not rendering in View

Support MB Views Fields not rendering in ViewResolved

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

    Hey folks,

    Sorry to reopen this thread ... but I noticed another issue that is related to this posting.

    I can get the fields to render no problem now in the archives page, but that is it. It will no render the fields data on single page, single post, or shortcode.

    Any thoughts?

    Here is a video showing what I am running into: https://www.youtube.com/watch?v=ft8TI3J8qQw

    Cheers

    #30892
    Long NguyenLong Nguyen
    Moderator

    Hi,

    You are using the main query in Insert Field tab > Query > Main query: Loop
    https://docs.metabox.io/extensions/mb-views/#main-query

    {% for post in query.posts %}
        ...
    {% endfor %}

    that means this query only applies to the type: Archive to show the list posts of the archive post type page. And it does not work for a single post or a single page.

    If you want to show a list of animal posts on a single page, you can use the custom query. Please read more here https://docs.metabox.io/extensions/mb-views/#custom-query

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

    Hello there,

    Awww, that makes sense -- so it was me making the mistake. =)

    Thanks for your help and the solution.

    Cheers

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