Support » Plugin: Custom Upload Dir » not uploading to complete permalink path

  • Resolved Marj Esch

    (@echelonwebdesign)


    I have settings set to upload to %postname% (when I save it gets changed to /%postname%) and I have “Always get all parents” checked. It’s ignoring the parent and uploading directly to the %postname% folder. Same results when uploading Gutenberg block “file” and “image”. I’d really like media (images and files) to upload to the full nested folder path. Is this expected behavior? Or am I missing something?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author ulfben

    (@ulfben)

    You are seeing intended behavior. %postname% will use the current post title to name the upload folder and not the URL to the post.

    “Always get all parents” apply only to pages and custom post types which might have parents. Normal posts can not have parents.

    If you want your upload directories to mirror your permalink settings you’ll have to copy the permalink settings into the path template.

    Eg. if your custom permalink structure is “/%year%/%monthnum%/%day%/%postname%/” copy that into custom upload dir’s path template field and you’re good to go.

    Marj Esch

    (@echelonwebdesign)

    What I was referring to was PAGES. The “always get all parents” isn’t creating nested folders for pages media. It used to create a nested folder under the parent, but it’s not doing it anymore. Now, I haven’t tested it on multiple sites, but on my BIG site, it’s not doing it anymore. It’s really not that big of a deal. It’s just not working like it used to.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.