[Resolved] Best way to implement conditional sidebar content?

Home Forums Support [Resolved] Best way to implement conditional sidebar content?

Home Forums Support Best way to implement conditional sidebar content?

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #896740
    John

    I need to use different content in a sidebar depending on the page being viewed.

    Right now, I want to use one set of content for home page, a different set for category archives and a third for single posts.

    In the near future we might want to make this more specific, so that the sidebar content would also be different depending on the category of the single post being viewed.

    What is the best way to do this?

    I have seen people recommending two different plugins: Content Aware Sidebars, Custom Sidebars. I have also done something similar a long time ago using the dynamic_sidebar() function but I don’t remember how exactly.

    #897035
    Tom
    Lead Developer
    Lead Developer

    Something like Content Aware Sidebars is the way to go. Doing so without a plugin would be quite complex I believe.

    #897183
    John

    Thanks Tom

    #897290
    Tom
    Lead Developer
    Lead Developer

    No problem 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.