Custom Post Type UI
[resolved] Custom Upload Directory (3 posts)

  1. Cadienvan
    Posted 1 year ago #

    Hi everyone,
    I have a question about Custom Post Types.
    Is it possible to define an upload directory for a single custom post type?
    For example, I have two custom post types such as "products" and "clients".
    When I upload a new image while editing a "clients" post type, how can I upload that image in "/wp-content/uploads/clients"?

    Is it possible?

    Thanks in advance.


  2. Michael Beckwith
    Plugin Author

    Posted 1 year ago #

    It's definitely not possible with our plugin, and I've never heard of that type of functionality in general either. If it has been done, it's been a custom plugin from someone else.

    Sorry I can't help any more than that, and hopefully you find yourself a solution.

  3. Cadienvan
    Posted 1 year ago #

    Thanks a lot.
    I decided to work at it by myself adding a filter to "upload_dir" defining a different upload directory for defined post type.

    Thank you anyway.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Custom Post Type UI
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic