Convert your string of IDs into a proper array:
$exclude_ids = get_field( 'exclude_pages' );
$exclude_array = explode( ",", $exclude_ids );
Then pass $exclude_array as the value for post__not_in
.
Convert your string of IDs into a proper array:
$exclude_ids = get_field( 'exclude_pages' );
$exclude_array = explode( ",", $exclude_ids );
Then pass $exclude_array as the value for post__not_in
.