K
K
karbonaraa2020-08-08 14:04:42
WordPress
karbonaraa, 2020-08-08 14:04:42

How to click a link in wordpress?

For some reason I can't click on the link

'<a href="<?php echo get_template_directory_uri()?>/contacts/">'
Everything seems to work, but it flips to a blank page, what could be the matter?
template name
<?php
 /*
 * Template Name: contacts
 */
?>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
O
Orkhan Hasanli, 2020-08-08
@azerphoenix

Hello!
Read the VP code to get started.

<a href="<?php echo get_template_directory_uri()?>/contacts/">

This is an invalid URL.
You need to create a page with the contacts slug in the admin panel.
And then apply your contacts template to this page
And the link will be example.com/contacts

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question