For example i have Main articles written in default wordpress posts, Now i have custom post type called ENERGY where i want to add main posts as parent to this ENERGY CPT.
WordPress posts = Parent
ENERGY CPT = Child
Please help me with code.
One More Example in Case: I want to link Energy post 10( as child) with Main wordpress post 20( as parent)
I have 100’s of posts So please help.