Access page other than standard

Asked

Viewed 26 times

0

How do I access a page created along with wp default pages such as sigle, page, etc...

Example, I create a page called examples.php and I want to access it. Which link should I use, because if I try http://localhost/site/examples.php given page not found.

1 answer

1


The wordpress has a route system that prevents you from accessing pages in this way.

You can access this file by creating a page in the admin panel and selecting this file as a custom template. To do this, you need to add a comment at the beginning of the file with the name of template.

When adding the comment and reloading the page of wordpress, he will present the template as an option to template customized.

<?php

// Template Name: Nome do Template.

?>
  • Perfect friend, very basic, but I’m trying to understand the structure of the worpress. Dude, just one more thing, on this page I’m going to list data from a dynamic list coming from the comic created in the same wp table structure. It’s already working, after what you’ve given me you’re already listing.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.