WordPress.org

Support

Support » Plugins and Hacks » [Resolved] Need help to use this plugin

[Resolved] Need help to use this plugin

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author djbokka

    @djbokka

    Give this a shot:

    <?php if ( is_active_sidebar( 'sidebar-1' ) ){ ?>
    	<div id="sidebar">
    		<?php if ( ! acf_Widget::dynamic_widgets( 'sidebar-1' ) ) { ?>
                         <?php dynamic_sidebar( 'sidebar-1' ); ?>
                    <?php } ?>
    	</div> <!-- end #sidebar -->
    <?php } ?>

    That will fallback to the default sidebar functionality if 1) the class isn’t found or 2) there are no filtered widgets returned from the function.

    That works so perfectly!
    Thank you, man.
    Seriously.

    The old posts keep their old widgets and the new ones I can configure as desired.

    I must say I´ve tried 3 plug-ins before this to get this done and only this works as i wanted.

    Thank you again.

    Plugin Author djbokka

    @djbokka

    Excellent. I’m glad it works for you. We have quite a few sites running it and have been pretty happy with the results.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] Need help to use this plugin’ is closed to new replies.