Title: Sub Attribute
Last modified: September 5, 2018

---

# Sub Attribute

 *  [sg83](https://wordpress.org/support/users/sg83/)
 * (@sg83)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/sub-attribute/)
 * I had another topic regarding not being able to get the sub attribute to work,
   but that one had more to do with me being on PHP 7.2. I’ve since reverted to 
   PHP 7 and no longer get an Apache error related to FileAway. However, for the
   life of me, I still cannot get the “sub” attribute to work. Whenever I put in
   the shortcode and try to define a subdirectory, it never works…it just keeps 
   taking me to the base directory. Any tips would be greatly appreciated.. Thanks!

Viewing 1 replies (of 1 total)

 *  Thread Starter [sg83](https://wordpress.org/support/users/sg83/)
 * (@sg83)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/sub-attribute/#post-10660416)
 * Nevermind…figured it out finally… seems to be a mismatch between what is reported
   as proper attribute syntax in the documentation versus what actually gets populated
   by the shortcode generator in WP.
 * If you use the “Optional Sub Directory” field in the shortcode generator, it 
   results in syntax like: file_away_sub=”subdirname”
 * The above does not work.
 * If you instead use the “Additional attributes” field in the shortcode generator,
   with the format like (without the quotes) “sub=subdirname”, it results in syntax
   like: file_away_customattr=”sub‹´›subdirname”
 * This does work.
 * Confusing, but glad I figured it out. Hopefully this helps someone else if you
   run into the same issue I did.

Viewing 1 replies (of 1 total)

The topic ‘Sub Attribute’ 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/)

 * 1 reply
 * 1 participant
 * Last reply from: [sg83](https://wordpress.org/support/users/sg83/)
 * Last activity: [7 years, 9 months ago](https://wordpress.org/support/topic/sub-attribute/#post-10660416)
 * Status: not resolved