I have a parent table called patients which has a one-to-many relationship with a child table called notes. (i.e. One patient can have several notes). If given a note, I would like to find other notes for the same patient. Notes are related to patients by a fk called patient_id. In SQL, I’d do this: SELECT * FROM notes WHERE
Tag: siblings
Get a list of siblings term ids from current product category in WooCommerce
I want to retrieve a list of term Ids based on the current category ID. At the moment I’m using the following code: $product_cat_items = get_queried_object(); $product_cat_id = $product_cat_items-…