Store relationships as post ID arrays with forward + reverse lookup, not a junction table

Written by

in

Each relationship field (e.g. rel_decisions on a Task) stores a plain array of related post IDs as a single post meta value. A record's full relationship graph is computed on read by combining its own forward links with reverse links discovered on other posts – so linking from either side makes the connection visible from both, without a database migration or custom table.

Created: 21/07/2026 · Updated: 21/07/2026

More posts