Custom Fields
Re-Envisioned
Support MB Views Archive view limiting the number of posts

  • Creator
    Topic
  • #31991
    Resolved Jim 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 %}
Viewing 3 replies - 1 through 3 (of 3 total)
  • Author
    Replies
  • #31996
    Long 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 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 Nguyen
    Moderator

    Thank you for your referral. Have a nice day.

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