WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Custom Fields - Widget Relationship Field add-on
Need help to us this plugin with Atahualpa theme (2 posts)

  1. collinglass
    Member
    Posted 1 year ago #

    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/

  2. djbokka
    Member
    Plugin Author

    Posted 1 year ago #

    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; ?>

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic