Support » Fixing WordPress » Load same sidebar multiple times

Viewing 3 replies - 1 through 3 (of 3 total)
  • You could just use a simple PHP include

    <?php include('bloginfo(stylesheet_directory)/nameoffile.php') ?>

    Then you have nameoffile.php inside your themes folder in your loop, and it’s contents will be included in the page? Is this what you were after?

    Mike Kohn

    (@rhymeswithmilk)

    Hey, it worked!

    I tried that before with an absolute path to the sidebar file and it resulted in a fatal error saying the function get_the_time didn’t exist. But using a relative path worked.

    <?php include('sidebar.php') ?>

    Thanks for the help, xdesi!

    No probs 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Load same sidebar multiple times’ is closed to new replies.