I need help making two post types relational in ACF.

So I’m building a template for ACF and I got services, FAQs, projects post type, etc. But I realize for projects. I may have multiple projects done for the same company so I decided That I also need to make a Companies post type before I fill out the project so I can create a company and then reads the company to another project later on but if I do this, I wanna make sure that these two are relational so that if I delete a Company, all its projects are deleted as well. Is this a recommended strategy? And if so, how should I go about doing this?

1 Comment
  1. The latest ACF relationship field supports bi-directional relationships. You can find info on how to set it up on their documentation site. Sorry, on my phone else I’d drop it here. It’s pretty neat!

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer