Quantcast
Channel: Toolset » All Posts
Viewing all articles
Browse latest Browse all 20145

Display link based on number of child posts

$
0
0

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!


Viewing all articles
Browse latest Browse all 20145

Trending Articles