WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm new at wordpress, so maybe this question is very basic, but I looked at Google and I searched for tutorials and I didn't find anything...

The question is simple. I have a "page", and this page is show as a friendly url. Example


How I coul find the php file where this "page" is render?

When you don't have friendly url, thats is easy : http://www.example.com/page_file.php?id=3&cat=8

but the friendly url hide all this information :(

Thanks in advance...

share|improve this question
If a page is using pretty permalinks, then the request is always at /index.php. The file used to generate the page is going to be in your theme directory (e.g. /wp-content/themes/twentyten). I reworded your question to reflect this. – John P Bloch Mar 24 '11 at 16:55
Are you looking for something like what was asked in: Get name of the current template file – t31os Mar 26 '11 at 11:53

The pages are generated dynamically from a php template in the theme directory. All single posts would use single.php (or single-[post-type].php if the theme supports it).

Page templates would be page.php (or page-[page name].php or page-[id].php)

share|improve this answer

I may be misunderstanding your question, but in WordPress that page is not related directly to a php file. If you are looking in the WordPress backend, you can go to either Posts or Pages and find that title, then hover over it and look in the status bar for the Post/Page ID, if that's what you're trying to find. Sorry not to be more help - maybe you can explain what you're looking for in a different way?

share|improve this answer
No, I need to transform this example.com/seleccion/2011/03/24/… in this example.com/page_file.php?id=3&cat=8 so I could identify page_file.php – Nisanio Mar 24 '11 at 16:45

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.