In 2016 theme, make sidebar post listings depend on the page they're on

  • Unknown's avatar

    I’m trying to contact Sales Support at wordpress.com to ask whether the Premium account lets me do something, but I can’t find their address. I don’t want to pay for a Premium upgrade and then find (because wordpress.com is restrictive compared to self-hosted wordpress) that I’ve wasted my money.

    Briefly, I have two categories of blog posts: category A, and category B. I want to create one page that displays all posts in category A, with a sidebar listing those posts’ titles. I want to create another page that displays all posts in category B, with a sidebar listing _their_ titles. So the problem is that I want different sidebars on different pages.

    I could do this if, for example, I could make two instances of a Recent Posts widget, then use visibility rules to put one instance on the first page and the other instance on the second. But that doesn’t seem possible, and all experiments I’ve tried run up against the same kind of limitation. Namely, you can’t make a sidebar’s content depend on which page it’s on. I could do this by editing the templates, but wordpress.com forbids that.

    The only solution I’ve found is to ignore wordpress.com sidebars altogether and fake my own, by dividing my page’s content into table cells or flexbox columns. But I don’t know whether this would work well with the styling of theme twentysixteen, which is the one I need to use.

    The blog I need help with is: (visible only to logged in users)

  • Here’s the answer for the similar question.

  • The topic ‘In 2016 theme, make sidebar post listings depend on the page they're on’ is closed to new replies.