Hmm ok here is some more strange strange stuff. When i put it in the sidebar and go to a post. I can see the value. But when i view the site from the index page the value is gone from the sidebar. Same goes for page. But when searching or browsing an archive the value appears in the sidebar.