0

My example is here

I am customizing the default template, but something isn't placed right. Can't figure it out.

By the way, I am asking this here and not at WordPress because frankly, their forums are horrible as far as response times go. Stackoverflow has always done me good :)

drew
  • 3
  • 1

1 Answers1

1

Without seeing the php code it'll be hard to know why. Do you have a seprate template for single post ie singlepost.php? If so, make sure you're include sidebar.php into that.

Looks like single.php in the default theme doesn't pull in the sidebar by default. You'll need to add <?php get_sidebar(); ?> right before <?php get_footer(); ?> in single.php or just delete the single.php and wordpress will use index.php instead which has the sidebar.

Brooke.
  • 3,691
  • 13
  • 49
  • 80
  • There is a "single.php" that i haven't modified, would that be it? – drew Nov 25 '09 at 00:09
  • Yeah, make sure that pulling in the sidebar.php. Also look for any is_single() statements in your index.php that would prevent it from pulling in the sidebar. http://codex.wordpress.org/Conditional_Tags – Brooke. Nov 25 '09 at 00:12
  • Ahhhh... there is no anywhere in this file. Where do you suggest I paste it in? Right inside the widecolumn? – drew Nov 25 '09 at 00:19
  • Thanks, that was it :) I actually pasted it in right under get_header(); ?> and it worked. Just have to get the styling figured out. Thanks mucho BR ;) – drew Nov 25 '09 at 00:24
  • You actually SHOULD put it before the footer, this way if there is an error i your sidebar code everything will load but the footer. This also follows the "standard" WordPress format. Also, as this is solved can you mark it as so? – Brooke. Nov 25 '09 at 00:27
  • I actually just deleted single.php and it looks much better using index. Thanks again! – drew Nov 25 '09 at 00:37