Hi I have two custom post types, I am using the parent-child relationship between both like as,
I want to rewrite the permalink for the both like as
Also, if there is no parent post specified then URL structure should be
I have tried many tutorials but no luck. I just want to know what will be the correct “add_rewrite_rule” for those permalink structures?
Read more here:: Parent Child Custom Permalink Rewrite Rule for Custom Post Type