One API, many surfaces
ncr_add_relation, ncr_get_related, WP_Query content_relation. PHP, REST, shortcodes, Gutenberg, Elementor.
Structured, indexed, scalable relationships between posts, users, and terms.
ncr_add_relation( 123, 'post', 456, 'post', 'related_to' );
$related = ncr_get_related( 123, 'post', 'related_to', [ 'limit' => 10 ] );Stability promise
Schema stable from 1.x onward. Backward compatibility guaranteed.
Install, add your first relationship in the UI, and show it with a shortcode or block.
What is NCR, minimal example, and next steps to installation and API.
Create, query, and remove from code. PHP, WP_Query, shortcodes, theme example.
Products & accessories, courses & lessons, related articles, favorites, WooCommerce.
WooCommerce, ACF migration, page builders, users & terms, data privacy, schema stability.
Latency at 100k and 1M rows, memory usage, and comparison with meta-based approaches.
WordPress does not have native relationships.
meta_query on relationship-style keys doesn't scale; full table scans as data grows.Developers need a first-class, indexed relationship layer. Not a workaround.
A dedicated relationship table and a small API. Same data, every surface.
Post β Indexed relationship table β Post / User / Term
content_relation in your query args.One API, one schema, many surfaces (PHP, REST, shortcodes, Gutenberg, Elementor).
Donβt list features. Show patterns.
Content modeling
User relationships
Taxonomy extensions
β Use cases β Products, courses, related articles, favorites, with code and shortcodes.
Most WP plugins never show performance data. We do.
| Scenario | 100k relations | 1M relations |
|---|---|---|
| Point lookup (mean) | 0.49 ms | 1.00 ms |
| Point lookup (P95) | 0.85 ms | 2.73 ms |
| Covering index mean | 0.22 ms | 0.61 ms |
| Peak memory delta | β | ~2.21 MB |
Covering index: (type, from_id, to_id) β index-only lookups; query time O(log n). Sub-2ms typical at 1M rows.
β Benchmarks β Full methodology, scaling guide, and comparison with meta-based approaches.
Same relationships everywhere. No lock-in.
Critical for ecosystem and agency adoption.
β Architecture overview Β· Schema
Short and scannable.
β Quick Start β First relationship in minutes.
β Relationships β Create, query, remove from code.
Escape from technical debt. We offer a path off meta and legacy plugins.
Repository β GitHub β WP-Native-Content-Relationships
Contributing β How to contribute: issues, docs, code. Standards and hooks documented.
Roadmap β Near term & future: documentation, stability, integrations; WPGraphQL, tutorials, ecosystem.
Transparency builds trust. No fluff.