diff --git a/functions.php b/functions.php index b8c2ee8..b69e582 100644 --- a/functions.php +++ b/functions.php @@ -23,7 +23,9 @@ add_filter('acf/fields/google_map/api', 'my_acf_google_map_api'); // Only show posts of category Urlaub (id=2) function my_home_category( $query ) { if ( $query->is_home() && $query->is_main_query() ) { - $query->set( 'cat', '2'); + $query->set( 'cat', '2'); + // set number of posts to 9 + $query->set( 'posts_per_page', '9'); if ( !empty( $_GET['person'] ) ) { $query->set( 'meta_query', array( array( @@ -82,4 +84,4 @@ function atravelblog_related_posts() { add_post_image_thumbs($urlaub, 'Urlaub:'); wp_reset_query(); } -} \ No newline at end of file +} diff --git a/index.php b/index.php deleted file mode 100644 index f51055c..0000000 --- a/index.php +++ /dev/null @@ -1,45 +0,0 @@ - - -
- - - - publish; - $total_pages = ceil( $published_post_count / $posts_per_page ); - - if ( "1" < $paged ) : ?> - -
- -

max_num_pages ); ?>

- -
- -
- - - -
- - - - - - - -
- -
- - - -
- - - -
- -