Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Details: https://wordpress.stackexchange.com/questions/319884/possible-bug-where-is-replaced-by-20-in-querystring-when-in-pagination-page
- // Add this to the theme's functions.php file. And this code cancels canonical
- // redirect when the query string `specialties` exists in the requested URL.
- if ( isset( $_GET['specialties'] ) ) {
- remove_action( 'template_redirect', 'redirect_canonical' );
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement