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

paypal bank cash

8 days ago

Cc cvv PayPal ca

13 days ago

Quick flips cash

13 days ago

Quick flips cash

14 days ago

New Making Money

23 days ago

PayPal cashapp B

25 days ago

PAYPAL WESTERN U

25 days ago

PAYPAL WESTERN U

25 days ago

PAYPAL WESTERN U

25 days ago

Untitled