Support » Plugin: Podlove Podcast Publisher » Bug in episode slug

Viewing 5 replies - 1 through 5 (of 5 total)
  • This appears to be coming from slugify(), which makes sense.

    So perhaps the bug is that the episode slug that is input in the podlove editor is not slugify’d before being validated.

    But it still begs the question: if / is not allowed in a slug, how can we point to media files uploaded using the WP admin? Unless we disable yearmonth.

    Here is one solution:

    1. Set the Podlove base url to http://yoursite.com/wp-content/uploads/sites/X/ (where X is your site ID for multisite).

    2. Add a custom mod_rewrite rule in .htaccess:

    RewriteRule ^([_0-9a-zA-Z-]+/)?wp/uploads/sites/(\d+)/(\d+)-(\d+)-(.*) $1/wp-content/uploads/sites/$2/$3/$4/$5 [L]

    ————-

    There is also a way to add this to .htaccess on plugin install with the mod_rewrite_rules filter, but I don’t know how that is triggered.

    Anyway, this would fix the problem of File URL with year/month formatting.

    Plugin Author Eric Teubert

    (@eteubert)

    Hi benallfree,

    This is more of an interface bug. It is by intention that the slug does not accept slashes. By design, it is a file slug and should not contain directories. Admittedly, this is not communicated at all at the moment.

    The recommended way to host media files is to upload them via FTP or sFTP, not the WordPress uploader. That way they can all be in the same directory, which is much more clean and organized.

    We will definitely try to make this more obvious.

    Hi, thanks for the reply 🙂

    I believe I have solved my issue with the .htaccess modification, at least temporarily.

    My use case is that assistants doing my uploading for me. I would prefer not to give them FTP access. Maybe it is worth considering some type of accommodation for using the WP media uploader?

    Two approaches I can see…

    Approach #1: Instead of specifying a slug, allow attachments to be associated with the custom post type.

    Approach #2 (the one I prefer): Support multiple slug ‘segments’ separated by / (or some other delimiter).

    Example base URL: http://yoursite.com/wp-content/uploads/sites/4/%1/%2/%3
    Example multi-segment slug: 2013/06/003
    Would map to: http://yoursite.com/wp-content/uploads/sites/4/2013/06/003.mp3

    Plugin Author Eric Teubert

    (@eteubert)

    Thanks for your suggestions,

    you are not the first one to ask for “WP Upload” support. We will consider it at some point when we have a great solution. Maybe something like a customized uploader in the episode page which uploads the file and automatically fills in the slug correctly. We will think of something 🙂

    Again, thanks for your feedback!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Bug in episode slug’ is closed to new replies.