Forums

archives.php? (6 posts)

  1. lynx13
    Member
    Posted 5 years ago #

    Hello!

    I edited the template of the "archives.php", but I can not see it when I type http://domain.com/wordpress/archives.php.

    What went wrong? I also created a PAGE named test and assigned "Archives" to it, but what is the URL of it?

    Hmmmm... I am a little confused...

    Any hints?

    Yours sincerely,
    lynx

  2. moshu
    Member
    Posted 5 years ago #

    1. You should never ever access a template file directly - i.e. by putting its name in the address bar. They are for internal use in the theme.

    archives.php (with plural S at the end) should be a Page Template (read the Codex) and should be used when creating a new Page and selecting it as the template for that Page.

    2. yourdomain.com/test

  3. lynx13
    Member
    Posted 5 years ago #

    @moshu: hmmm...

    to 2) I can not access my page titled "test" via domain.com/test! I can only see it when I type http://domain.com/?page_id=xy!

    Do I have to include something into my .htaccess maybe?

    Thanx anyway!

    Greetz,
    lynx

  4. moshu
    Member
    Posted 5 years ago #

    Sorry, you are right: the URL you posted ALWAYS works.
    The one I assumed - is valid only when your "nice" permalinks are activated.

  5. lynx13
    Member
    Posted 5 years ago #

    So, I can always access this page via http://domain.com/?page_id=xy, but when I activate "nice Permalinks" i can access the page via

    domain.com/test

    or domain.com/archives

    it depends, how I named my page, is that right?

  6. moshu
    Member
    Posted 5 years ago #

    Basically, yes. The "slug" is created by WP from the title of your posts or Pages.
    http://codex.wordpress.org/Introduction_to_Blogging#Post_Slugs

Topic Closed

This topic has been closed to new replies.

About this Topic