Archive view limiting the number of posts

Support MB Views Archive view limiting the number of postsResolved

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #31991
    Jim HunterJim Hunter
    Participant

    I am creating a page that will display all the posts (CPT) for a given custom taxonomy. It was simple to output the post title but it is only showing the first 10, like a normal wp_query would show. How can I make it display them all? Here is the test code (entire view code) I have that only displays 10 of the 18 CPTs.

    {{ term.name }}<br />
    {% for post in query.posts %}
        {{ post.title }}<br>
    {% endfor %}
    #31996
    Long NguyenLong Nguyen
    Moderator

    Hi,

    You can change the posts per page for the default query in Admin dashboard > Settings > Reading > Blog pages show at most.

    or use the custom query, please read more on the documentation https://docs.metabox.io/extensions/mb-views/#running-php-functions

    #32046
    Jim HunterJim Hunter
    Participant

    Setting the limit in the Settings page did the trick. Thanks for the tip.

    Have I mentioned today what a great job you guys do? I have turned a few of my friends away from ACF and to MB, because of how awesome your product is.

    #32073
    Long NguyenLong Nguyen
    Moderator

    Thank you for your referral. Have a nice day.

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