Title: sidebar2.php
Last modified: August 18, 2016

---

# sidebar2.php

 *  [pooks](https://wordpress.org/support/users/pooks/)
 * (@pooks)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/sidebar2php/)
 * 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)

 *  [moshu](https://wordpress.org/support/users/moshu/)
 * (@moshu)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/sidebar2php/#post-501143)
 * 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](https://wordpress.org/support/users/pooks/)
 * (@pooks)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/sidebar2php/#post-501151)
 * thanks!
 *  [greeenkaos](https://wordpress.org/support/users/greeenkaos/)
 * (@greeenkaos)
 * [19 years, 5 months ago](https://wordpress.org/support/topic/sidebar2php/#post-501163)
 * 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.

## Tags

 * [content](https://wordpress.org/support/topic-tag/content/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 3 replies
 * 3 participants
 * Last reply from: [greeenkaos](https://wordpress.org/support/users/greeenkaos/)
 * Last activity: [19 years, 5 months ago](https://wordpress.org/support/topic/sidebar2php/#post-501163)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
