This plugin is an add-on for Advanced Custom Fields. It allows you to use an ACF "relationship" field to choose widgets at a page level.
IMPORTANT! NOW ONLY COMPATIBLE WITH ACF 4.2 AND ABOVE! BACKWARD COMPATIBILITY HAS BEEN REMOVED.
This plugin is an add-on for Advanced Custom Fields. It allows you to use an ACF “relationship” field to choose widgets at a page level.
Inherit widgets from parent post or menu items. Drag and drop to change widget display order.
https://bitbucket.org/djbokka/widget-relationship-field-add-on-for-advanced-custom-fields
https://bitbucket.org/djbokka/widget-relationship-field-add-on-for-advanced-custom-fields
If this plugin helps you, please give it a good rating. If you have any problems, please ask me. I’m happy to help.
plugin-name.php
to the /wp-content/plugins/
directoryIn sidebar.php
, replace dynamic_sidebar()
function with the new dynamic_widgets()
method.
if ( ! acf_Widget::dynamic_widgets( ‘Side Bar’ ) ) {
//fallback to default function if you like
dynamic_sidebar( ‘Side Bar’ );
}
https://bitbucket.org/djbokka/widget-relationship-field-add-on-for-advanced-custom-fields