I am building a site which has two custom post types – physicians and medical procedures. I have reviews and ratings set up for each CPT individually and it works great. What I am looking to accomplish is to allow a user to review/rate a medical procedure but also select the physician who performed the procedure (if they exist in the database) and also rate the physician at the same time.
I was able to generate a list of physicians via a custom WP Query which I added to the comment form for the medical procedures CPT. However, I can’t figure out how to save the physician’s rating/review to tie it to the particular doctor’s listing (or BuddyPress user account for that matter).
I’m hoping there is a built-in function in the core that will allow me to accomplish this but I will write custom code if someone can point me in the right direction. Thanks for your help!