WordPress.org

Forums

[resolved] new file, get_file() (4 posts)

  1. vanhansen
    Member
    Posted 3 years ago #

    Hello and merry christmas to you all =)

    I made a new file called content2.php
    I want to load this file the same way I load the header, sidebar and footer.

    like this:
    <?php get_header() ?>

    I uploaded the file, so it appears in the list of files on the right hand side on the editor page.. I tried a few different ways of doing it, but none with success. I tried the codex, but when you dont know what to search for it's not very easy to find it!

  2. vanhansen
    Member
    Posted 3 years ago #

    anyone?

  3. dtrickky
    Member
    Posted 3 years ago #

    Try <?php get_template_part( 'content2'); ?>

  4. dtrickky
    Member
    Posted 3 years ago #

Topic Closed

This topic has been closed to new replies.

About this Topic