I need someone experienced in Wordpress, session and cookie setup to hack a few files of a theme.
It's basically the [url removed, login to view], [url removed, login to view] and [url removed, login to view] so that I can store and retrieve an affiliate parameter with the following priorities:
- from the $_GET
- then from $_SEssion
- then from cookies
- finally, use a default value if nothing is found
It needs to work on home page and internal pages whether user arrives on one or the other and then navigates.
So, if someone is already cookied, but now visits the website through an URL with another ?aid= then it will take precedence and recreate a session and drop cookie accordingly.
You will provide the code snippets I should add to each files as well as a way to "echo" this aid wherever I need it in my theme.
do not bid if you're not experienced with session and cookies. It's easy for someone who knows what he is doing :-)