Support

Account

Home Forums Front-end Issues Getting value from options page when a checkbox is selected Reply To: Getting value from options page when a checkbox is selected

  • Hopefully I have this right, I’m assuming you have these people added on an options page.

    A better way to do this would be to have a Custom Post Type for adding the people and then use a relationship type of a field on the page editor where you want to allow them to be selected. If you’re not sure about adding CPTs check out Custom Post Type UI. You can set public to false in the post type so the posts are not accessible from the front end.

    Using and options page for your people you’re going to need to build a filter on the acf/load_field hook that gets all the values from the option pages and makes them choices for your checkbox field. I think displaying them on the front end would probably be a bit more complicated than the other way.