Link doctors to clinics, or products to recipes, through a JetEngine relation (beta)
See what each item is linked to through a JetEngine relation, then add, remove or replace links with your approval, with a warning before any link moves.
- Difficulty
- Intermediate
- Time
- about 20 min
- Works with
- JetEngine
On my JetEngine site there is a relation between [parent, e.g. clinics] and [child, e.g. doctors]. Show me what kind of relation it is and what each [clinic] is linked to now. Then make the links match this list: [list, e.g. Dr Smith and Dr Lee at the City Centre clinic, Dr Patel at the Harbour clinic]. Before you change anything, tell me if a link would move from one item to another because the relation allows only one. Make the changes after my approval.
Already connected?
If SAR is already in your AI app, this is enough:
Link [children] to [parent] through the JetEngine relation [relation], and warn me if a link moves.
What happens
- The AI app reads the site's relations: which objects are parent and child, and whether each is one to one, one to many or many to many.
- It lists the items on both sides and what each one is linked to now, with their titles; a user is shown by id only.
- It prepares the links as additions, removals or a full replacement, through JetEngine's own relation calls. The dry run says if a child would leave its old parent because the relation keeps only one.
- The change waits for your approval in SAR. It can be undone for 30 days, links that moved included.
Approvals involved
Worked out from the tools this recipe uses.
wordpress_jetengine_overviewJetEngine overviewNonewordpress_list_postsList posts or pagesNonewordpress_get_related_itemsJetEngine related itemsNonewordpress_set_relation_linksChange JetEngine relation linksApproval
What you get
The right doctors linked to each clinic, or the right recipes to each product, without opening every item in wp-admin.
Related recipes
- Content · about 25 minFill in and tidy the listings of a JetEngine directory (beta)Add new listings to a JetEngine Custom Content Type as drafts and fix missing or outdated fields in existing ones, with personal details kept masked.
- Content · about 10 minNew opening hours or contact details on a JetEngine options page (beta)Change the opening hours, phone or address kept on a JetEngine options page, in one place, with your approval and a screenshot of the page that shows them.
- Agencies · about 15 minWhat a JetEngine site is built from, before you take it over (beta)Before quoting for or taking over a Crocoblock site, get a plain map of its JetEngine post types, content types, relations, options pages, filters and templates.
Try it on your own site
Install the plugin, add SAR to your AI app and paste the prompt. Free to start.