Fixing show/hide logic (post/category/id overlap)