How can I display an "add child CPT" based on the number of children the parent post has.
Example, I have a Parent CPT called "Building" and a Child CPT called "Rooms". I want to show a link that says "Add Room" only if the there are less than 3 child CPTs.
Thanks!