Support » Fixing WordPress » [1.5] How to add the sidebar to static pages?
12 years, 2 months ago
Tell me. How can I have my sidebar be on non-wp pages?
has the sidebar correctly.
does not. How can i get it to work as well?
http://desk003.com/wp-content/themes/v6/cams.php doesnt work either.
You sound desperate… Does cams.php have what’s mentioned here:
lol I am. No it doesnt, but with WP 1.5 i thought they got rid of it. i’ll add it….
didnt fix it.
and yeah i put the file both in the site index folder and in the theme folder, neither worked.
now for some reason my index.php is blank….
whoops. I overwrote the wp-blog-header.php file in root dir. there. fixed. however the other still doesnt work.
Try resetting your theme for this latest problem.
As for the first, is cams.php making a call to another database, or at least to a non-WordPress MySQL process? If so, this could be the issue (as in one is causing a conflict with the other).
nope its not, no database calls other than for wordpress
theres the cams.php file.
Ding ding ding!
<?php include 'http://desk003.com/wp-content/themes/v6/nav.php' ?>
The PHP include() function does not take URLs for a path. It’s got to be a directory path on the server. Try this:
<?php include(ABSPATH . 'wp-content/themes/default/v6/nav.php') ?>
really? i’ve used url paths all the time! it works, but isnt supposta eh? hmm.. okay… didnt work.
oh wait.. hrmmm.. now its worse LOL
edit: and [Moderated] my post title got changed LOL
[Moderator comments: Yes, some post titles get changed so that it is easier in the future for people to find relevant posts that may help them solve a problem.]
Ok, I overstated; it’s not a recommended method. But I can’t explain what’s missing from your template that keeps the WP function from working.
“oh wait.. hrmmm.. now its worse LOL”
If you left my version in, that’s the ABSPATH constant, which if WordPress is not loading, would fail to call up the proper path to your WordPress installation.
okay i fixed the includes, there was a /default/ that shouldnt have been there.
ABSPATH is though.