Replies: 0
Hey guys,
thank you so much for the great plugin.
I’m trying to do the following: I want to include custom checkboxes to the sign up form where users can choose which categories they are interested in. They should be able to change this selection at any time in their profile.
Logged in users should only see the chosen categories on the index.php and a few categories that you can’t opt-out. Users that are not logged in will see all categories.
I included the checkboxes as custom fields now and I can see the choices in the database. Now I am trying to do the correct loop for the index.php. And that’s where I am stuck. Is there any easy way to do this? My php knowledge is very basic but basically I have to check if a user is logged in, get his id and then make an if statement that asks for the chosen categories and then assign the correct output. I would be so happy if someone would help me and tell me the correct code for this and where to put it.
Thank you so so much!