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

Do not change the limit set by the user posts #35

Open
leobaiano opened this issue Sep 15, 2016 · 0 comments
Open

Do not change the limit set by the user posts #35

leobaiano opened this issue Sep 15, 2016 · 0 comments

Comments

@leobaiano
Copy link
Collaborator

Between the lines 201 and 209 of the functions.js there is thecity_limit_posts_per_page ()which is the callback action" pre_get_posts ". This feature sets it on the home page returns only 3 posts ignoring the sticky, according to the evaluation can not modify user settings, ie the amount of posts displayed should be a user setting via the control panel.

My suggestion is to remove the entire function and leave the pattern loop at home, this solves the problem, you only need to test to see if that will not break the layout when it has more than 3 posts, but if you need to adjust the CSS.

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

No branches or pull requests

1 participant