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. here, i need to load same template but with different content as per the parent url.
let’s say if i submit the form on mywebsite.com, i need to show video related to /page on mywebsite.com and the same procedure for mywebsite.com which shows video related to /another-page.
Note: I need to show this as end result of hubspot form submission on different pages. [
Site
](https://deepmaterialkr.com/)
- do i need to create a page in admin area for that? [
unionwells vietnam
](https://www.unionwellvietnam.com)
- 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.