Advertisement
fauzanjeg

Increase Category Post per Page

Jul 1st, 2021
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.30 KB | None | 0 0
  1. /** Increase Category Post per Page */
  2. function increase_category_post_per_page( $attr ) {
  3.     if ( is_archive() && is_category() ) {
  4.         $attr['number_post'] = 20; /** Fill with number of post per page */
  5.     }
  6.     return $attr;
  7. }
  8. add_filter( 'jnews_get_content_attr', 'increase_category_post_per_page', 10, 1 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement