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.
- 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.
Topic child-pages forms pages Wordpress
Category Web