View is using same post for every item on Posts/Archive page

Support MB Views View is using same post for every item on Posts/Archive page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #33898
    brandonjpbrandonjp
    Participant

    I have a shortcode view called 'byline' that I'm using in a few places and it's working great.

    {{ mb.get_the_term_list( post.ID, 'artist', 'by ', ', ', '.' ) }}

    But when I put this shortcode in the posts list using the new WP theme editor like this: https://cln.sh/dNr79H

    it's outputting the same post.ID for every item like this: https://cln.sh/gFbeKj

    How can I get the correct post.ID? Or is this a problem for now when using the new WP theme editor?

    Here is the site: https://omnimodern.little.am/

    #33906
    Long NguyenLong Nguyen
    Moderator

    Hi Brandon,

    I see the artist of each post displays as well, screenshot https://monosnap.com/file/Myk62yvsE5bYESGsdkn6FJuEy8wx8n

    Did you resolve the issue?

    #33923
    brandonjpbrandonjp
    Participant

    Hi Long, Thanks for the quick reply. I created a work around, but the issue still exists. (I had to present the site yesterday, but I have switched it back to the broken version today.)

    The issue happens when I use the default WP latest posts page. In WP Admin Settings > Reading, if I set "Your homepage displays" to "Your latest posts" then the view does not use the correct post. I have put this shortcode in the posts list using the new WP theme editor like this: https://cln.sh/dNr79H but it continually only renders the First (most recent) post - like this:L https://cln.sh/gFbeKj - rather than the current post in the loop.

    Here again is the site - currently back to the broken version on the homepage: https://omnimodern.little.am/

    #33947
    Long NguyenLong Nguyen
    Moderator

    Hi Brandon,

    You can follow this documentation to create a custom query for the archive page https://docs.metabox.io/extensions/mb-views/#custom-query

    Then show the post meta or term list on each post.

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