Title: Problem with recursive table
Last modified: January 10, 2017

---

# Problem with recursive table

 *  [lucaborghy](https://wordpress.org/support/users/lucaborghy/)
 * (@lucaborghy)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/problem-with-recursive-table/)
 * I have created a recursive list using the following shortcode:
 * echo do_shortcode(‘[fileaway type=”table” base=”3″ recursive=”on” thumbnails=”
   permanent” onlydirs=”‘.$elgruppi.'” paginate=”true” pagesize=”5″ textalign=”left”
   hcolor=”blue” color=”red” iconcolor=”blue” searchlabel=”CERCA”]’);
 * The problem is that the files in subdirectories of the “onlydirs” are not shown.
   
   I can see only the files in main directories.
 * Can you help me?
    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/problem-with-recursive-table/#post-8640537)
 * Try opening up `wp-content/plugins/file-away/lib/cls/class.fileaway_utility.php`
 * and change line 370 from:
 * `if(self::endswith("$folder", "$onlydir"))`
 * to:
 * `if(strpos($folder, $onlydir) !== false)`
 *  Thread Starter [lucaborghy](https://wordpress.org/support/users/lucaborghy/)
 * (@lucaborghy)
 * [9 years, 4 months ago](https://wordpress.org/support/topic/problem-with-recursive-table/#post-8641898)
 * Thanks, but still it doesn’t work as I need.
 * Now I see all files. But I need to show only files in the “onlydirs” folders 
   and their subfolders.
 * Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Problem with recursive table’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/file-away_e3e2e1.svg)
 * [File Away](https://wordpress.org/plugins/file-away/)
 * [Support Threads](https://wordpress.org/support/plugin/file-away/)
 * [Active Topics](https://wordpress.org/support/plugin/file-away/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/file-away/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/file-away/reviews/)

## Tags

 * [recursive](https://wordpress.org/support/topic-tag/recursive/)

 * 2 replies
 * 2 participants
 * Last reply from: [lucaborghy](https://wordpress.org/support/users/lucaborghy/)
 * Last activity: [9 years, 4 months ago](https://wordpress.org/support/topic/problem-with-recursive-table/#post-8641898)
 * Status: not resolved