• Resolved ronald.kubo

    (@ronaldkubo)


    Hello,

    First of all, thanks for a much needed plugin! I hope you can help me with my request, I would be more than happy to get you something from your Amazon wishlist in return ??

    I am an organization freak, and your plugin gets me halfway, all images for content pages/posts are neatly organized into /%parent_name%/%postname%/ . But on my website I also display info and images on my WooCommerce product-categories pages. There is no taxonomy to cover this, so when I use your plugin and upload pictures to the product-category pages they end up in the uploads root folder.

    In the FAQ you write how to create a custom taxonomy, but my knowledge of php is very limited, so could you please describe in greater detail how to do this, or show the example how this would look like for product categories?

    And a small extra note: If the taxonomy for product categories would be added, would it get a folder in the upload root folder, or behind my existing path? I ask because in the plugin you can only set one folder structure path with all taxonomies in line, like my current:

    Build a path template: /%parent_name%/%postname%/

    Where would a new taxonomy end up?

    Thank you!!!
    Ronald

    https://www.ads-software.com/plugins/custom-upload-dir/

Viewing 1 replies (of 1 total)
  • Plugin Author ulfben

    (@ulfben)

    In the FAQ you write how to create a custom taxonomy, but my knowledge of php is very limited, so could you please describe in greater detail how to do this

    You just put the taxonomy’s name between percentage signs: %your_taxonomy%

    or show the example how this would look like for product categories?

    I don’t use WooCommerce and have no idea what its taxonomy structure looks like. Three seconds of googling tells me this might be a good place to start.

    If the taxonomy for product categories would be added, would it get a folder in the upload root folder, or behind my existing path?

    It would be placed wherever you put it in your template path. Add the taxonomy at the end and it will be a sub-directory. Prepend the taxonomy and it will be a base directory.

    Just remember that if the context is missing for a certain tag, it will be ignored. For example, post_title, obviously requires that the upload is done to a named post / page. If the post hasn’t been given a title, the post_title will not be a part of the upload path created.

    I recommend you make use of the "Test it:" function on the plugin configuration page. Give it a few post IDs to quickly check what your upload path will end up being.

Viewing 1 replies (of 1 total)
  • The topic ‘custom taxonomies inquiry’ is closed to new replies.