• In the wordpress database attachments are represented as posts and as such can have a category. Is there a way to upload a file to a wordpress installation and set the file’s category during the upload (without inserting it into a post)?

    Here is what I am trying to do: On each category archive page, I would like to display download links for a few files that are related to that specific category. I would be able to write the PHP code to display the relevant links, but have not yet found a way to upload files and to set their categories. The media manager does not allow this.

    Background information: I am trying to convert a large site from a homegrown CMS to wordpress. The inability of adding files to a category is one of the few things slowing me down right now.

    Any ideas?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Can you not just upload all the files manually via FTP and then simply manage the database via MyPHPAdmin?

    Thread Starter ose

    (@ose)

    I could do that, but the authors who will write posts/add files wouldn’t be able to do that and I am hesitant to write some extra GUI for this functionality.

    I guess as a workaround I can always ask them to create a post for each individual attachment and then pull attachments from the database that way.

    Still, it seems like WordPress’ attachment handling is lacking some functionality. (E.g. I just realized I cannot attach a file to more than one post. I can of course link to it from multiple posts, but attaching it seems impossible at least through the GUI.)

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Attachment categories’ is closed to new replies.