repeating posts on 2nd page to posts

Use this in your child themes functions.php file add_action( ‘pre_get_posts’, ‘exclude_category_posts’ ); function exclude_category_posts( $query ) { if( $query->is_main_query() && $query->is_home() ) { $query->set( ‘cat’, ‘-27,-30′ ); } } Add a comma separated list of category i.d’s to the set. Never Use Query Posts

Pagination 404 on my index.php

The reasons why you should not run query_posts() are perfectly outlined in this answer. Long story short: You overwrite the default query (that happens by WP core) and replace everything that was valid for this request with data that only matches for your secondary query. The function get_query_var() relies on the global $wp_query that gets … Read more

Infinite scroll for text in post with url page change

You will need to modify (or create your own) the script that does the loading to change the URL once he loads a new page. Changing the URL may not be so simple, but you can have a look at this question for tips: https://stackoverflow.com/questions/824349/modify-the-url-without-reloading-the-page

WordPress pagination with Bootstrap 4 and Grid content Display

That’s because you have to change your query also have add ‘paged’ => get_query_var( ‘paged’ ) So your new query should look like $args=array( ‘post_type’ => ‘post’, ‘paged’ => get_query_var( ‘paged’ ),// add this line ‘post_status’ => ‘publish’, ‘posts_per_page’ => 20 ); For for information have a look at the WP_QUERY Class