I am trying to add a parameter to the currently visited url but it doesn't work.
I've tried query_vars
, pre_get_posts
, post
, post_link
, page_link
,post_type_link
....
None of this work...
How can I simply add &moo=$foo
to the url and read the moo
value in a shortcode