- This topic has 1 reply, 2 voices, and was last updated 4 months, 3 weeks ago by .
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?
- You must be logged in to reply to this topic.