Comments (3)
What do you mean? You can use a simple function to set amount of posts?
function wpsites_query($query) {
if ($query->is_archive() && $query->is_main_query() && !is_admin()) {
$query->set('posts_per_page', 100);
}
}
add_action('pre_get_posts', 'wpsites_query');
from bootscore.
No, for it to work in my file I have to put it in higher priority (11), it took me a moment to see that it came from the loop.php file and so I asked myself the question of why Bootscore had put that by default for all archives especially since it can be configured in the WordPress reading settings.
from bootscore.
since it can be configured in the WordPress reading setting.
You're right, seems the script is from a time when that wasn't possible. Want to create a PR?
from bootscore.
Related Issues (20)
- Unable to style an active navbar item
- Unable to close a photo from the media gallery when enlarged or go back HOT 9
- Create assets folder HOT 4
- [BUG] Potential Woocommerce Bug in the Slide out Basket HOT 2
- [BUG/Help Wanted] Pagination for Post HOT 3
- [BUG] Double eye in account offcanvas HOT 1
- Reason of using fixed-top HOT 1
- <header><footer> inside <main>
- [BUG] Dark Mode Plugin HOT 3
- [BUG] Edit single product page
- Wrong Isotope usage HOT 5
- Please reopen Issue 759 as it is not resolved HOT 1
- [Feature Request] A solution for a "Drill Down Menu" HOT 4
- Translation HOT 1
- Translate HOT 4
- my-account/edit-address/
- [BUG] WooCommerce Legacy REST API HOT 2
- [Feature Request] Dynamic footer columns based on active footer widgets HOT 2
- [Feature Request] radio in checkout woocommerce HOT 4
- [BUG] Plugin incompability: YITH Woocommerce Advanced Reviews HOT 10
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bootscore.