WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Can I make a page based on the themefiles ? (4 posts)

  1. St1an
    Member
    Posted 6 years ago #

    Quick: I want to create a gallerypage that looks like my index.php page.

    Full: I thought that by using

    <?php get_header(); ?>
    
    Image and stuff
    
    <?php get_footer(); ?>

    I would be able to make a new page. But I don't know where to place the file to make it work, and I don't really know if it will work.

    I tried overwriting the original index.php in my themes-folder, and it works great, but I kinda want the blog to be intact, and have a separate gallerypage.

    So, anyone know where I should place it, and how to link to it to make it work ?

  2. moshu
    Member
    Posted 6 years ago #

  3. St1an
    Member
    Posted 6 years ago #

    I was looking at Template_Hierarchy and found out that if I rename the file to category-13.php ( 13 being my "gallery" category ) I can link to the page with /?cat=13.

    Now I only need something to fill it with! Thanxz!

  4. moshu
    Member
    Posted 6 years ago #

    Well, if category, you might be interested in Category_Templates

Topic Closed

This topic has been closed to new replies.

About this Topic