Hello,
when I use rwmb_meta helper to get a link for file download into Oxygen repeater. I need to get just one file.
<?php
$files = rwmb_meta( 'cf-den-1-ustanoveni', array( 'limit' => 1 ) );
$file = reset( $files );
?>
<a href="<?php echo $file['url']; ?>">Ustanovení</a>
I get the link on the frontend just fine, but backend reports this error
reset() expects parameter 1 to be array, string given.
Any thoughts on this?
Thank you.