Support » Plugin: Advanced Custom Fields - Widget Relationship Field add-on » Need help to us this plugin with Atahualpa theme

  • Hi, I am using the Atahualpa theme and this splits my sidebar.php into header.php and footer.php, left sidebars in header and right sidebars in footer.

    My code is:

    <!– Right Sidebar –>
    <?php if ( $right_col == “on” ) { ?>
    <td id=”right”>

    <?php if ( !dynamic_sidebar(‘Right Sidebar’) ) : ?>

    <!– Default content here –>

    I am brand new to PHP and WordPress, How do I insert the following code into this?

    if ( ! acf_Widget::dynamic_widgets( ‘Side Bar’ ) ) {

    //fallback to default function if you like
    dynamic_sidebar( ‘Side Bar’ );

    }

    Thanks
    Collin

    http://wordpress.org/extend/plugins/advanced-custom-fields-widget-relationship-field-add-on/

Viewing 1 replies (of 1 total)
  • Plugin Author djbokka

    (@djbokka)

    Sorry for the late response. I’m not getting notifications of these posts for some reason.

    Try replacing

    <?php if ( !dynamic_sidebar('Right Sidebar') ) : ?>
    <!-- Default content here -->
    <?php endif; ?>

    With this

    <?php if (  ! acf_Widget::dynamic_widgets( 'Right Sidebar' )  ) : ?>
    <?php dynamic_sidebar('Right Sidebar'); ?>
    <?php endif; ?>

Viewing 1 replies (of 1 total)
  • The topic ‘Need help to us this plugin with Atahualpa theme’ is closed to new replies.