Title: Directly load sidebar.php template.
Last modified: August 19, 2016

---

# Directly load sidebar.php template.

 *  [dralezero](https://wordpress.org/support/users/dralezero/)
 * (@dralezero)
 * [15 years, 11 months ago](https://wordpress.org/support/topic/directly-load-sidebarphp-template/)
 * Can I direclty load the sidebar.php or include it with some file so dynamic widgets
   get processed by wordpress? Without having to load a page?
 * Currently I have created a random Page, assigned it a Page Template I made that
   only contains sidebar loading, and accessing that page. I am loading with jQuery
   so I can pass along the ID of the page you are on to override that random page
   I made.
 * Basically I am loading the sidebar with jQuery.
 * EDIT: Looks like I stumbled across it and it seems to be working. `<?php require_once('../../../
   wp-load.php'); ?>` (relative to a file in my theme) at the top of my file. Then
   I can put all my sidebar code, etc and process just like WordPress.

The topic ‘Directly load sidebar.php template.’ is closed to new replies.

## Tags

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

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 0 replies
 * 1 participant
 * Last reply from: [dralezero](https://wordpress.org/support/users/dralezero/)
 * Last activity: [15 years, 11 months ago](https://wordpress.org/support/topic/directly-load-sidebarphp-template/)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
