Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Don't set limit on amount of posts displayed on Amplify feed #150

Merged
merged 3 commits into from
Mar 10, 2020

Conversation

joshdarby
Copy link

Changes

This pull request makes the following changes:

  • Adds 'posts_per_page' => -1, to the feed query args so all posts are shown

Why

For #140/#127

Testing/Questions

Features that this PR affects:

  • Amplify feed query

Questions that need to be answered before merging:

  • Is this PR targeting the correct branch in this repository?

Steps to test this PR:

  1. Add more than 10 posts to your saved tags list. Make sure all display on the amplify feed.

'post_status' => 'publish'
'post_type' => 'rounduplink',
'post_status' => 'publish',
'posts_per_page' => -1,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought I once saw official advice to not use -1 here, but that appears to no longer be the case: https://developer.wordpress.org/reference/classes/wp_query/#pagination-parameters

@joshdarby joshdarby changed the base branch from master to staging March 10, 2020 16:35
@joshdarby joshdarby merged commit 88d1746 into staging Mar 10, 2020
@benlk benlk deleted the 127-style-embed-feed-template branch June 15, 2020 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants