Skip to content
Wordpress Multi-media UPloader
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Wordpress Multi-media UPloader (wmup) is a python program that can upload custom wordpress posts with media attachments.

(Actually... now that I think about it, it might only upload media attachments for blubrry powerpress)


When the script is run it looks for your configuration file at ~/.config/wmup/config.json


example ~/etc/wmup/config.json

    "auth": {
        "site": "",
        "user": "YourWordpressUsername",
        "pass": "YourWordpressPassword!42"

    "items": [
            "before": [
                "echo Hello!",
                "echo These work with keys too {path} {@term_1}"
            "after": "echo you don't need to put a single command in a list",

            "path": "/path/to/media/test.mp3",

            "type": "Your_custom_post_type",
            "publish": false,

            "date": "2014-11-26 10 PM",
            "date-format": "%Y-%m-%d %I %p",
            "zone": -5,

            "content": "{@term_5}",

            "@term_1": "These are your",
            "@term_2": "Custom post_type's terms",
            "@term_5": "",

            "!comment": "Json values with an exclamation mark in front are ignored",
            "!term_6": "Useful for commenting out a term since json is lacking comments"

before and after are lists of commands to run before and after the post is uploaded to wordpress. You can use these to convert files to the right format and clean up after your're done.

Scripts that you want to run must currently live in ~/etc/wmup/scripts/ but they can call anything from there.


  • let scripts set variables
  • print scripts output nicer (something like "echo: hey")
You can’t perform that action at this time.