Handling Files in Repeaters
-
Hi there,
I’m really appreciating the repeater abilities in this plug-in, but I am having trouble when I am trying to use file uploads in repeaters. I am building a website for a client where he would like to upload a number of files in both .doc and .pdf format, so my thinking was to set up a repeater with a title and two file upload fields.
Here is the code that I am trying to use.
<?php foreach( get_uf( 'upload' ) as $document_files ): extract( $document_files ) ?> <h3><?php echo $unitdoc_title ?></h3> <a href="<?php echo $unitdoc_doc ?>">Download .DOC</a> <?php endforeach ?>
It works to grab the title, but my links to the files are only three-digit numbers. For example, the link from ‘website.com’ will be ‘website.com/250’. Why are my file link only numbers? Am I doing something wrong with my code? In the output settings I have it set to “The URL of the file”.
Thanks for any help you can provide.
- The topic ‘Handling Files in Repeaters’ is closed to new replies.