N
N
Nikita Petrov2016-06-07 23:48:36
PHP
Nikita Petrov, 2016-06-07 23:48:36

How to set path to php page?

I can not figure out how to set the path to the page of the site in php format. Task: display the result of the taxonomy in my case "2010" on a separate page (taxonomy-2010.php). Then attach a link to it on the main page in the bar.
Currently, the results of the "2010" tag are displayed on the index.php page, ignoring the taxonomy-2010.php page.
I register taxonomy-2010.php in the right place on the site, but it does not open. Tried different paths: taxonomy-2010.php,
localhost/wordpress/taxonomy-2010.php , localhost/wordpress/taxonomy-2010.php.
Word press engine, site on Denver. Screenshots for clarity of the problem.
In general, help to solve these 2 problems.36771bf10c0d413a8a00591a028f3748.png62bbb71987e347aabb6f1e22b30f8d30.png734f7fc9aa6a4e5c898750af5e7d64c5.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
I
Ivan, 2016-06-07
@LiguidCool

Put a slash and the file name in the link.
/taxonomy-2010.php

Z
Zhainar, 2016-06-08
@zhainar

Write at the top of the file before the line <?php

<?php
/*
Template Name: My taxomony
*/

Then create a regular page through the admin panel, and in the template column, select My taxomony

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question