Title: &quot;forcing&quot; a layout within PHP
Last modified: August 30, 2016

---

# "forcing" a layout within PHP

 *  [ottmance](https://wordpress.org/support/users/ottmance/)
 * (@ottmance)
 * [10 years, 8 months ago](https://wordpress.org/support/topic/forcing-a-layout-within-php/)
 * I have a custom page template called template-books.php. I can create a page 
   in wordpress and assign this template to it. I also set the layout to just have
   a left sidebar. This is all good.
 * Im using a tag cloud widget in the left sidebar to allow the user to filter the
   list of books by tags. This is also good.
 * Where things fall over a bit is when someone clicks on one of the tags which 
   subsequently loads up my taxonomy-book_categories.php file. The results are perfect
   but for the fact that I loose my left sidebar. I get the right sidebar just fine
   because the right sidebar is the default sidebar.
 * Yes I could set the default sidebar to be the left one but then I’d have to go
   through all my pages and set the layout on them to use the right sidebar or no
   sidebars as appropriate but that’s a bit of work.
 * What I’d like to do is to enforce the use of the left sidebar in my taxonomy-
   book_categories.php file. Does anyone know how best to do something like this?
 * Thanks
    Chuck

The topic ‘"forcing" a layout within PHP’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/customizr/4.4.24/screenshot.png)
 * Customizr
 * [Support Threads](https://wordpress.org/support/theme/customizr/)
 * [Active Topics](https://wordpress.org/support/theme/customizr/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/customizr/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/customizr/reviews/)

## Tags

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

 * 0 replies
 * 1 participant
 * Last reply from: [ottmance](https://wordpress.org/support/users/ottmance/)
 * Last activity: [10 years, 8 months ago](https://wordpress.org/support/topic/forcing-a-layout-within-php/)
 * Status: not resolved