Support

Account

Home Forums Front-end Issues filter user to only see certain data

Helping

filter user to only see certain data

  • Hello everyone i have been working my brain and just cant get how to do this and everything i have tried has seemed to just break the site in some way or other. so i have a table that displays custom posts that have been submitted, i need to filter it down so only certain users can see certain data.

    In Users profile i have a select field with some locations, this is where the user works.

    in the table it currently show all but i need to get it where if user works for location it only show that location information. (multi locations can be used but more for management).

    So my first thread and i hope someone can assist with this the aim is…

    if user_location = location it will show only relevant data in the table. if i do a var_dumb on user_location it provides back

    array(3) { [0]=> string(5) “28818” [1]=> string(5) “28817” [2]=> string(5) “28816” } so it is see where the user is located.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.