Forums

[resolved] Cookies only working when logged into wp-admin (1 post)

  1. dolro
    Member
    Posted 4 months ago #

    Hi all! My first post here but I am truly stuck and hope someone can help.

    On a client's site I have it set so that when you click a button it sets a cookie using javascript and then the posts are filtered by php based on that cookie being present.

    Everything works fine when I am logged into wp-admin and then go to the homepage. However, when logged out, even though the cookie is still set, it no longer filters. As though it no longer detects that the cookie is set.

    Has anyone dealt with this before?

Reply

You must log in to post.

About this Topic

Tags