I would to know how can I set the limit number of the posts visible into a page of a specify category.
相关问题
- Display product ACF field value in Woocommerce tra
- Adding a custom button after add to cart button in
- How to add a “active” class to a carousel first el
- Setting custom order statuses as valid for payment
- change the font size in tag cloud
相关文章
- wordpress新增页面如何个性化设置
- select query in wordpress
- Get WooCommerce featured products in a WP_Query
- Woocommerce update shipping methods in checkout vi
- Change order status just after payment in WooComme
- Publishing or uploading failed. Error message: “Th
- Facebook Login With WP JWT Auth
- Is there any limit on number of html elements, tha
Put this in your functions.php
You should use this:
cat
is the category idpost_per_page
is the limit if the postsAdding
&orderby=rand
to the query will be select random posts.You can find the full documentation of this here: http://codex.wordpress.org/Class_Reference/WP_Query