Forums

How to discover files .php wordpress is running (2 posts)

  1. nakid
    Member
    Posted 3 months ago #

    Hi all,

    I´m PHP Developer but its my firs time using WordPress.

    I wrote some outputs in the theme files to discover with file is running. I had this result:

    IN URL: myblog/index.php?cat=4
    RUNS THE FILE IN THEME FOLDER: archive.php

    IN URL: myblog/index.php?page_id=5
    RUNS THE FILE IN THEME FOLDER: page.php

    IN URL: myblog/index.php?page_id=5
    RUNS THE FILE IN THEME FOLDER: index.php

    Notice that all the URLs calls the index.php but just the last one really runs the file index.php.

    I testes in different themes, and all works in the same way.

    I can´t wonder what file and how it does do this switch, to choose the file .php thal will be running a analyzing the args after "?";

    Could you guys help me please?

    I want to know this to run posts of differenst categories in different pages.

    Thank You very much.

    Nakid

  2. esmi
    Theme Diva & Forum Moderator
    Posted 3 months ago #

    Start by reviewing Theme Development.

Reply

You must log in to post.

About this Topic

Tags