How do I place content on archive pages but not on main page?

I would like to place content in a sidebar of my blog articles when they are viewed in the archive, but not show this content when the blog articles are shown on the main page of my site.

Can this be done?

Related posts

Leave a Reply

3 comments

  1. I would recommend setting up multiple sidebars. Then you can call one sidebar for regular pages and a different sidebar for archive pages. This gives you complete control over which elements appear in the sidebar on each type of page.

    Here’s a good tutorial on creating multiple, widget-ized sidebars. You can manage each in the Appearance >> Widgets section of the admin dashboard.