The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Starkers Theme 2.8: How to include files

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • #29844

    I’ve been enjoying an old screencast on Designing for WordPress. However, I think Chris is using an older version of Starkers them, because my PHP files from the latest 2.8 version seem quite different.

    The problem I am running into is that I don’t know how to include new files. For example, I created a new file called searchbox.php that I would like to include in the sidebar.php file.

    Chris uses the following format: <?php include(TEMPLATEPATH . ‘searchbox.php’); ?>

    However, when I use this I receive an error saying that the file failed to open.

    Does anyone with experience in the latest Starkers version know how to include files? Or point me in the direction of a helpful tutorial?

    Thanks in advance!

    Rob MacKay

    if the defined constant wont work you can have a look at the get_bloginfo() function: … t_bloginfo

    Maybe that will help :)

Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘Back End’ is closed to new topics and replies.