To show a sidebar in a Wordpress theme you do this:
<?php dynamic_sidebar( 'sidebar' ); ?>
But I am trying to insert a value from a custom field where the sidebar name is so I have this solution which does not work:
<?php $field = get_field_object('section_specific_sidebar'); ?>
<?php dynamic_sidebar( echo $field['value'] ); ?>
I've tried many things and have searched quite a bit but I'm not totally sure of the language I should be using to search. Could anyone show me what I'm missing? Adding the single quotes around the $value doesn't work either it seems.