Looping Through Post Type With Views

Support MB Views Looping Through Post Type With ViewsResolved

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #19382
    swartjieswartjie
    Participant

    Hey Guys,

    Ok so I need to loop through a post type's items and display them in a table format, Baring in mind, not on the archive page though, It needs to be a custom page with other content, cause several post type's are embedded together at the end of the day.

    How can I use the custom type, and then query a post type, then use it's variables?

    Thanks in advance 🙂

    #19390
    Long NguyenLong Nguyen
    Moderator

    Hi,

    You can use WordPress functions to create a query get posts with mb proxy. Please follow this article to know how to do that
    https://metabox.io/mb-views-how-to-display-relationships/

    or this sample code https://pastebin.com/anTUUTN3

    #19411
    swartjieswartjie
    Participant

    I see you referenced facetwp: true
    Is there a way to incorporate FacetWP into the view to filter the results?

    #19417
    Long NguyenLong Nguyen
    Moderator

    Hi,

    Please follow the documentation of Facet to create a custom query
    https://facetwp.com/documentation/templates/wp-query/

    and use it in the view as the sample code above.

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