• Hello, I have been unsuccessful in getting a post query based on an acf field to work correctly. The setup is an acf field that pulls entry data into it, if a user “opts out” from seeing that specific post then their user name is added into that acf field. So what I am trying to achieve is “hide post if current user = acf field value.” I have the name of the ACF field in the field name and have tried [current_user] or [username] shortcodes in the field value box, but it should return at least 1 post where my username is entered.

The topic ‘Hide post based on value in custom field’ is closed to new replies.