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 url.

Note: I need to show this as end result of hubspot form submission on different pages.

  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.

Topic child-pages forms pages Wordpress

Category Web


Create 25 child pages in the admin area and set them to use your template, then update the content for each page to match its parent page

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.