Custom Sidebar for Departments

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #15682
    asapelearning
    Participant

    I have added the “Custom Sidebar” metabox to my Departments page, as I want to use different custom sidebars for each of my departments. Getting it to display in my back-end was no problem. However, what do I use on my single-department.php to call the value that I put into that metabox?

    I’ve added a line below line 169 in single-department.php for the php (so it shows up within the department-sidebar fourcol last div), but I don’t know what that code should be to have it get the sidebar value. Would it be <?php dynamic_sidebar(‘xxx’); ?>, and if so, what would I put inside the single quotes? I tried ‘mo_get_sidebar’ and it didn’t work.

    Any help you can provide would be greatly appreciated.

    #15683
    asapelearning
    Participant

    I’ve also tried this without success:

    <?php dynamic_sidebar($sidebar_id); ?>

    #15684
    asapelearning
    Participant

    I used the Content Aware Sidebars plugin to solve the problem.

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Custom Sidebar for Departments’ is closed to new replies.