Custom Endpoint Gives 404 Header
I’m not sure if this is the only reason why it wasn’t working but I was missing two things. I wasn’t added any sort of rewrite rule to test on I was testing against pagename instead of query_vars. Here’s the final solution: /** Register Query Vars **/ function theme_custom_query_vars( $vars ){ $vars[] = ‘map’; return … Read more