Passing variable via URL is producing a 404 Error…
-
Here is the URL:
https://grassrootsindiana.com/teampage/?year=19
If you just go to /teampage, it takes you to the blank page it otherwise is. Once the parameter is added, it goes to the 404 page. If you use the items in the Menu, the only one set up with the ?year=## is the second Class of 2019 link.
I added this to my theme’s function page. No change.
function add_query_vars_filter( $vars ){ $vars[] = "year"; return $vars; } add_filter( 'query_vars', 'add_query_vars_filter' );
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Passing variable via URL is producing a 404 Error…’ is closed to new replies.