Does anyone know if there’s an easy way to display a field on the front end without having it linked to edit an existing post, create a new post or outputting any other form elements (e.g. form tag, submit button)?
Essentially I’d just like to output the HTML of a checkbox field to the front end.
The reason I ask is I have a search function that allows users to filter posts based on an ACF checkbox field. I can do this easily by replicating the checkbox field options in HTML however I’d like the filter options to update when the ACF field is updated.
I’ve taken a look at acf_form() but it looks like it’s geared towards editing/updating content – I just want to allow users to search/filter content by the same checkbox fields that are used to create the content.
I’m not sure if those plugins will work or not. Could you please try it first? Another solution would be using get_field_object() to get the field details instead of the value and automatically create the HTML form using PHP.