Custom Field used to display different sidebar
-
Greetings, everyone. This is my first time posting in the forums. Hope you can help. I’m not at all versed in coding. Here’s what I’m looking to do.
I have two sidebars on my blog (the left and the right). I’ve set up some posts with a custom field called “noads” (No ads). If a post contains the noads field with a value of 1, I want to display a different right sidebar, one without the ads. Otherwise, I just want the regular sidebar to display.
Reason: there are a few posts that need to be excluded from showing ads, by request of the ad network.
My blog URL is https://secondhandkarl.com/
Thanks, everyone. I’m new to WordPress so I’m trying to learn. Any help will be appreciated.
Karl
- The topic ‘Custom Field used to display different sidebar’ is closed to new replies.