0

I have created custom page template (template-clock.php)

This template is dynamic and it is getting information by link (?cat=99).

Now I want to create dynamic link to that page from home page. But I can't get URL of page which has template-clock selected.

I want to create something like this: href="/template_URL/?cat=99"

seems like get_page_template_slug() works inside that template ony.

is there any method like get_temp_url('template-name') ?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.