I have two custom post types called hotels and rooms. Users can register to my web site and they can add their hotels and rooms from their wp backend. so my problem is when they are adding hotels they need to select their hotel rooms.
I’m using Advanced custom fields and it has field type called post object. but that field displaying posts in select menu. I need to do it with checkboxes.So it’ll be so easy to user.
I really appritiate if someone can help me.
Thanks
It will require a little bt of code along with ACF
Add checkbox field (ex : brands) and add following code in your functions.php file
use wp query parameters to filter posts.
Post id will be the checkbox value with title as label in metabox.