How to create a dynamic content from second segment uri?

Question

First, I have to say that I spend many hours to research but still no luck and I am not sure if I am in the wrong point or even I have no idea what I have to looking for.

I have created my custom page template and I want it to query from database depend on second uri segment.

Example :
mydomain.com/show/show-number-1
mydomain.com/show/show-number-2
mydomain.com/show/show-number-3

Those links should be using same page template that I created but it should query content from database by using a second uri segment (show-number-1, show-number-2 …).

Please give me an advice or just let me know the keyword or what I have to looking for.

Thank for advance.

0
, , pors 2 years 2020-01-13T08:39:30-05:00 0 Answers 77 views 0

Leave an answer

Browse
Browse