Home Forums Front-end Issues Get Post/Pages based on ACF checkbox Reply To: Get Post/Pages based on ACF checkbox

  • Hi @astrixoblix

    Just to clarify, you are loading the current checkbox value via get_field, then you want to find all other posts which have exactly the same checkbox values? Or are you finding any posts which have any of the checkbox values ticked?

    I think you need to dynamicaly generate the meta_query args array by loop through your checkbox values and appending to the meta_query args array.

    Does that help?