• Hey I’d need a dirrerent sidebar content to single post pages.. is there a way to create another sidebar file (fex sidebar2.php) which could be loaded to singlepost.php like <?php get_sidebar2(); ?>

    many thanks for your help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • 1. You can create a different sidebar.
    2. You cannot call it like that.

    Use:
    <?php include (TEMPLATEPATH . '/sidebar2.php'); ?>
    Use it as it is, change only the filename, if necessary – sidebar2.php or myfancysidebar.php ??

    Thread Starter pooks

    (@pooks)

    thanks!

    Also, you could use conditional tags in your sidebar.php, such as:

    <?php if (is_single()) { ?>
    <?php } ?>

    and add your content for single post pages in between.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘sidebar2.php’ is closed to new replies.