Untitled - Posted on July Mon 4th 12:04 PM (Never Expires) - Format: php
  1. add_action('init', function(){
  2.    add_rewrite_rule( 'zipcode\/([0-9]{5})\/page\/([0-9]{1,})\/?', 'index.php?pagename=zipcode&zipcode=$matches[1]&page=$matches[2]', 'top' );
  3.    add_rewrite_rule( 'zipcode\/([0-9]{5})\/?', 'index.php?pagename=zipcode&zipcode=$matches[1]', 'top' );
  4.    add_rewrite_tag(
  5.         '%zipcode%',
  6.         '([^/]+)'
  7.     );
  8. });
  9.  
  10. function wpd_add_query_vars( $qvars ) {
  11.   $qvars[] = 'zipcode';
  12.   return $qvars;
  13. }
  14. add_filter( 'query_vars', 'wpd_add_query_vars' );
  15. // zipcode/62233/ works
  16. // zipcode/62233/page/1 goes to 404

New Paste

Paste Options

Recent Pastes

6 days ago

Cc cvv PayPal ca

7 days ago

Earn Quick cash

7 days ago

ATM creditcard c

8 days ago

Buy PayPal Txt U

10 days ago

Cc cvv dps PayPa

15 days ago

ATM creditcard c

18 days ago

ATM creditcard c

18 days ago

Do All Transfer

19 days ago

Earn Legit PayPa

25 days ago

ATM creditcard c