load common thank you template with different content for different pages
i have created a template called
thank-you.php and inside that i want to show different content as per the parent url. for e.g.
mywebsite.com/another-page/thank-you. here, i need to load same template but with different content as per the parent.
- do i need to create a page in admin area for that?
- do i need to set this page as a child? if so, how can i set as a child for specific pages(around 25 pages)?
- how can i solve this problem?
I am new to wordpress. any help is appreciated.