Hey Nick,
Thank you very much for your work, first of all. What a wonderful plugin!
I’ve set a code in my functions.php so a cookie is set when the URL contains a particular parameter. Now, I’ve found out that if the client is visiting my page with the parameter (example.com/?parameter=value) for the first time, they won’t see the block if it’s set to display only if the cookie is set.
I verified this by creating the following (this is the expected result):
- A: example.com –> no cookie set –> only display block0
- B: example.com/?parameter=value1 –> cookie1 set –> only display block1
- C: example.com/?parameter=value2 –> cookie2 set –> only display block2
And this is what happens if I do these steps in this order:
- I visit B. The block from A is displayed.
- I visit C. The block from B is displayed.
- I visit A. The block from C is displayed.
Can you think of something so it works correctly? I could use the query string check, but it’s not preserved in other pages unlike a cookie.
Thanks!
