• Hey,

    Great theme, thank you!

    how can i change posts_per_page in the front-page.php?

    just changing the number from 4 to 10 didn’t help

    thanks

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author Sami Keijonen

    (@samikeijonen)

    First of all, you should not modify parent theme files. You just lose all modification when you update the theme. You should download and activate child theme from here.

    Let me know if you have done that and I can give more info.

    Thread Starter MY-Comm

    (@my-comm)

    ok, i’ve installed the child theme

    can you help me with the functions.php?

    Theme Author Sami Keijonen

    (@samikeijonen)

    Add this in your child theme functions.php.

    function my_child_front_page_args( $my_posts_args ) {
    
    	$my_posts_args['posts_per_page'] = 10;
    	return my_posts_args;
    
    }
    add_filter( 'kuorinka_front_page_post_arguments', 'my_child_front_page_args' );

    After that update any of your post/page to delete transient.

    Thread Starter MY-Comm

    (@my-comm)

    Works perfect

    THANK YOU!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘posts_per_page’ is closed to new replies.