Sidebar as a static archive index
-
Dear WordPressers,
I have a very simple request. It is exactly the same question posed in this thread, but it remains unanswered. It is probably a novice mistake – but any insight is welcome!
Basically I want my sidebar to display an index archive of posts (as links). I managed to do this by copying the code from the archive page to the sidebar. Now the problem is that when I click on a post it displays the post on a single.php page correctly but the sidebar also displays that single post.
I would want the sidebar to stay static, so it should keep on displaying the archive index as a whole. Additionally I want the post which is active to be highlighted in the sidebar – that would be awesomeness ofcourse : )!But first things first. Here is my code, what am I doing wrong?
[Code moderated as per the Forum Rules. Please use the pastebin]
Thanks so much for your initial help!
- The topic ‘Sidebar as a static archive index’ is closed to new replies.