Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter James Jennett-Wheeler

    (@jwheeler91)

    Edit: With a bit more testing, I have discovered that the variable is picked up at the root web address so: http://strawsmusic.loc/?event=1330232400 works (kinda).

    But this isn’t useful for me. I want it linked to the “/live/” page…

    So when i add the code to my events.php template,

    global $wp_query;
    if (isset($wp_query->query_vars['event'])) {
    	$event = esc_attr($wp_query->query_vars['event']);
    	echo $event;
    }

    So it doesn’t work to use “/live/?event=1330232400”

    Moving to “Plugins and Hacks.” This is a question about canonical redirects, query variables, and such, not about 3.3 beta or RC.

    Thread Starter James Jennett-Wheeler

    (@jwheeler91)

    You can close it if you like,

    While I’d still like an answer, I found an alternative using Div IDs, JavaScript and adding # with event id to the url.

    its not ideal as the client has to be served more information then needed (which would otherwise be handled and shortened by the server…

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Custom querys broken? ($_Get variables -> Custom_Archives)’ is closed to new replies.