Bypass blog pages show at most

Posted in: Newsmag
Post count: 5

I have a custom post type and would like to list all the posts within it instead of only showing the first 10 with pagination. Normally you can bypass the “Blog pages show at most” setting by using:

'posts_per_page'=>-1

but I don’t know how to bypass it with Newsmag.

Post count: 6535

Hi

You can use page-builder+latest as page template and filter posts by post type here: http://screencast.com/t/jyLVDnObkt

Hope this helps.
Thanks!

Post count: 5

Thanks Andrei but I don’t see that as an option.

Here is what I am trying to do. On the page below I want to show ALL the posts under this Custom Post Type so that they show up on one screen as opposed to paginating it to 10 posts per page.

http://empoweringpumps.com/industry-pros/

I am using a child theme and them using one of the modules in order to pull all the info when you get to the link above.

Also, I would like the posts to show up alphabetically not chronologically.

Post count: 6535

Hi

I assume that you want to customize the archive page for this post type. In this case you can use pre_get_posts filter. Please check this link for more detail about filter’s usage: https://codex.wordpress.org/Plugin_API/Action_Reference/pre_get_posts also this thread may help: http://wordpress.stackexchange.com/questions/192557/changing-posts-per-page-and-offset-with-pre-get-posts

I hope this helps.
Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newsmag’ is closed to new topics and replies.