Title: Recursive Search
Last modified: August 24, 2016

---

# Recursive Search

 *  Resolved [rdkumm](https://wordpress.org/support/users/rdkumm/)
 * (@rdkumm)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/recursive-search/)
 * Using 3.9
 * I’m looking to have recursive search. Simple map of how I’m structured is…
    dir—
   sub dir 1 — — file 1 — — file 2 — — file 3 — — file 4 — sub dir 2 — — file 1 —
   sub dir 3 — — file 1 — — file 2 — file 1 — file 2
 * When I search it only retrieves root’s sub dir and files, but not any sub dir
   files. Maybe it’s just me not using what is there correctly, but I see no difference
   with recursive on/off or with directories on/off.
 * Thanks in advance, and great plug in!
 * [https://wordpress.org/plugins/file-away/](https://wordpress.org/plugins/file-away/)

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

 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/recursive-search/#post-6014951)
 * Please show me what your shortcode looks like.
 *  Thread Starter [rdkumm](https://wordpress.org/support/users/rdkumm/)
 * (@rdkumm)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/recursive-search/#post-6015023)
 * [fileaway base=”3″ size=”no” manager=true recursive=true thumbnails=”permanent”
   thumbsize=”small” thumbstyle=”squarerounded” images=”none” type=”table” mod=”
   no” customdata=”tags” metadata=”database”]
 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/recursive-search/#post-6015028)
 * recursive and manager mode are either/or. Manager mode gives you directory tree
   navigation. You can’t have both recursive mode and directory tree mode enabled
   at the same time. Manager/directory tree mode override recursive mode. With directory
   tree mode, you navigate the directories. With recursive mode, you get all the
   files from all directories in one table, without directory navigation.
 *  Thread Starter [rdkumm](https://wordpress.org/support/users/rdkumm/)
 * (@rdkumm)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/recursive-search/#post-6015030)
 * OK thanks!
 *  Thread Starter [rdkumm](https://wordpress.org/support/users/rdkumm/)
 * (@rdkumm)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/recursive-search/#post-6015033)
 * in recursive mode my tags don’t show up.
 * [fileaway base=”3″ size=”no” recursive=true thumbnails=”permanent” thumbsize=”
   small” thumbstyle=”squarerounded” images=”none” type=”table” mod=”no” customdata
   =”tags” metadata=”database”]
 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/recursive-search/#post-6015050)
 * That’s interesting. I’ll see if I can duplicate that as soon as I get home.
 *  Thread Starter [rdkumm](https://wordpress.org/support/users/rdkumm/)
 * (@rdkumm)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/recursive-search/#post-6015052)
 * thanks, I created the tags in manager mode then switched to recursive mode.
 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/recursive-search/#post-6015066)
 * Got a one-line fix for you. It’ll be included in the next release, but I’m also
   doing a few other things, so if you want to go ahead and fix it now, do this:
 * 1. Open up in an editor: `/wp-content/plugins/file-away/lib/inc/inc.file-array.
   php`
 * 2. On line 12, Change this:
 * `$dir = $recursive ? str_replace($slices['basename'], '', $file) : $dir;`
 * to this:
 *     ```
       $dir = $recursive ? str_replace($slices['basename'], '', $file) : $dir;
       $dir = trim($dir, '/');
       ```
   
 * 3. Save the file and reupload it.
 * Done.
 *  Plugin Author [thomstark](https://wordpress.org/support/users/thomstark/)
 * (@thomstark)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/recursive-search/#post-6015072)
 * Or… just update to 3.9.5, which is now up.
 *  Thread Starter [rdkumm](https://wordpress.org/support/users/rdkumm/)
 * (@rdkumm)
 * [11 years, 1 month ago](https://wordpress.org/support/topic/recursive-search/#post-6015077)
 * Thanks I’ll get the update! Great support response.

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

The topic ‘Recursive Search’ 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/)

 * 10 replies
 * 2 participants
 * Last reply from: [rdkumm](https://wordpress.org/support/users/rdkumm/)
 * Last activity: [11 years, 1 month ago](https://wordpress.org/support/topic/recursive-search/#post-6015077)
 * Status: resolved