Custom Fields
Re-Envisioned
Support MB Views Fields not rendering in View

  • Creator
    Topic
  • #30883
    Resolved zenjukai@gmail.com
    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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Author
    Replies
  • #30892
    Long 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
    Participant

    Hello there,

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

    Thanks for your help and the solution.

    Cheers

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