Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Reply To: [Assigned] Is it possible to hide results from a view based on custom field and role?

$
0
0

Dear Dan,

If you custom field is called restricted, you need to add the wpcf- prefix to evaluate:

Change 'yes' to whatever value you store in the custom field.

[wpv-if field="wpcf-restricted" evaluate="$field = 'yes' AND '[wpv-current-user info="role"]' = 'administrator'"]
Only administrators can see this
[/wpv-if]

Please let me know if you are satisfied with my answer and if I can help you with any other questions you might have.

Regards,
Caridad


Viewing all articles
Browse latest Browse all 20145

Trending Articles