Advertisement
5ally

Untitled

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