开发者

How do I get the WordPress sidebar to show up on a post's detail page?

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 time开发者_开发百科s go. Stackoverflow has always done me good :)


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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜