So I have this variable of $date = array($year,$month);
inside a couple of nested foreach
statements. I have a link that when pressed should pass the $date
variable over to my functions.php for me to play around with.
I'm using wordpress and so far I understand the link has to work something like this:
$link = admin_url('admin-ajax.php?[$date variable needs to go here]&post_id='.$post->ID.'&nonce='.$nonce);
Basically my question is how exactly does the link above need to be formatted to send my variable? Also, on the server side, how best to receive that variable?