Dynamically Create Custom Post Type According to Relationship Another Custom Post Type
I would have the goal of appending the other device onto any existing permalink so you can compare one to the other, and vice versa. That’s fully dynamic/automatic; i.e., requires no manual entry and no CRON job, etc. So let’s pretend you have: https://example.com/mobile-device-a/ We want to add support for: https://example.com/mobile-device-a/compare/mobile-device-b/ https://example.com/mobile-device-b/compare/mobile-device-a/ See: add_rewrite_endpoint() Create … Read more