How To Display Sidebar Content On All Pages Except The Home Page
-
Hi everyone.
I need to show ads in my sidebar on every page EXCEPT the home page. I thought I had figured it out using if(is_single() but discovered categories, pages, archives- and everything else was not displaying the ads in the sidebar.
If anyone knows the exact code I should use it would be helpful.
Below is what I am using
<?php if(is_single() && $post==$posts[0] && !is_paged()) { ?> CODE HERE <?php } ?>
Thank you 🙂
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘How To Display Sidebar Content On All Pages Except The Home Page’ is closed to new replies.