• Resolved matthisco

    (@matthisco)


    Can someone please tell me if I can use the following to show a widget in the sidebar:

    This is my code but it doesn’t work:

    <?php if ( ! dynamic_sidebar( 'sidebar-1' ) && is_page('page-name')) : ?>
    //show widget
    <?php endif; // end sidebar widget area ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Dynamic sidebar – only show on certain page’ is closed to new replies.