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/page/thank-you and mywebsite.com/another-page/thank-you. here, i need to load same template but with different content as per the parent.

  1. do i need to create a page in admin area for that?
  2. 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)?
  3. how can i solve this problem?

I am new to wordpress. any help is appreciated.

Zuber 5 months 2021-07-06T07:17:41-05:00 0 Answers 0 views 0

Leave an answer