Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #173341


    I have 2 pages with posts and same layout:


    Both have custom left sidebars, ‘Sidebar whiskypedia’ and ‘Sidbar whiskyteca’, wich have some categories.
    A category is only in one sidebar.
    In Enfold Theme options, blog page is blank.

    The thing is when i click some category en page ‘Whiskyteca’, the post are displayed, and when I click in the post, the sidebar that loads is the ‘Sidebar blog’, wich I can only assign only one acordion menu.

    So, the desired behaviour is that the sidebar should be displaying the same that posts have.

    Something like: “If category = 1,2,3,4 then sidebar=’Sidebar Whiskypedia’, else if category=5,6,7,8 then sidebar=’Sidebar Whiskyteca'”…

    Some php I can modifiy?

    Thanks a lot!

    This reply has been marked as private.


    You’ll need to use a plugin like this one for that kind of functionality:

    It will allow you to use WordPress conditional logic to make widgets display only on some categories/pages etc.

    Best regards,


    Thanks Devin, works ok!!


Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Sidedars in category pages’ is closed to new replies.