Archived

This topic is now archived and is closed to further replies.

  • 0

Sidemenu problem

Question

Posted · Report post

Hi On my blog page http://www.fabcity.in/blog/ I have set the side menu to 'Show Secondary Sidebar' however it continues to show the 'main sidebar'. As I would like my blog to have a more 'blog look' I want to use the secondary sidebat to present the post archives for example. Any idea on what might be the problem here? Thanks Nic

Share this post


Link to post
Share on other sites

1 answer to this question

Posted · Report post

Well WP handles the 'posts' page differently than really all the others. If you're using 'custom fields' to do this; it won't work. This is a feature we might add but you'll need to edit the 'sidebar.php' file. Add some code to this part: `<?php if(get_post_meta($post->ID, 'secondary_sidebar', true)):?>` change it to: `<?php if(get_post_meta($post->ID, 'secondary_sidebar', true) || is_home()):?>` to get the secondary sidebar to show on that page.

Share this post


Link to post
Share on other sites