Pagination doesnt work on child pages
-
Hello,
I discovered a bug in your Plugin when using it with WPML.
The links that are generated in the pagination dont account for subpages. So instead of
https://example.com/parent/child/?page=2
we get
https://example.com/child/?page=2
To solve it I changed line 61 in class-page-posts.php from
$page_url = home_url( '/' . $wp_query->post->post_name . '/' );
to
$page_url = home_url( '/' . get_page_uri( $wp_query->post->ID ) . '/' );
I am not sure if its the best solution but it solves my problem. Please consider changing it in an upcoming patch.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Pagination doesnt work on child pages’ is closed to new replies.