Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Stephen Harris

    (@stephenharris)

    The default is usually 10. But you can alter that with:

    add_filter( 'pre_get_posts', 'lullavie_archive_query' );
    function lullavie_archive_query( $query ) {
    	if( $query->is_main_query() && $query->is_post_type_archive( 'event' ) ) {
    		$query->set( 'posts_per_page', 4 );
    	}
    }
    Thread Starter Lullavie

    (@lullavie)

    Thank You ??

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘How to display more events on the " archive- event.php "’ is closed to new replies.