Stop sidebar content from showing when on that post
-
Hello…
On my blog I use one of those fake loops to display a post of Youtube video from a ‘Hot Video’ category in the sidebar.
When I’m on the single post view… it shows the video in the main area (where it’s supposed to) AND in the sidebar (where I don’t want it to show).
If you go to the following URL you’ll see what I mean:
https://www.ryanpaul.ca/hot-video/griffin-house-the-guy-that-says-goodbye-to-you-is-out-of-his-mind/Anyone have an idea how I can stop the sidebar vid showing when on that post’s single post view?
I tried assigning the post id to a global variable in the main loop, then assigning the post id to a different variable in the sidebar, and then doing <? if($mainid == $sideid) { ?> in the sidebar but none of that worked.
- The topic ‘Stop sidebar content from showing when on that post’ is closed to new replies.