PDF – urls: Rewriting or Creating Custom Folders
-
Hello,
I currently have multisite set up and have been able to rewrite the urls for my custom post type posts so that the url contains meta values of the post. For example:
publications/publication-title/year-published/month-published/name-of-post
The meta values are year published and month published. Publications is a custom post type and publication title is the taxonomy term.
My question is what would be the best approach for creating a similar url for uploaded pdfs. Currently pdfs simply have the same folder in the url:
Can I do the same with pdfs that I upload and that are connected to a post? Should I try to rewrite the urls although I image this would be challenging because I would 1) have to identify the post-parent of the pdf and 2) then pull all the meta data from the parent and then apply it to that url.
Or should I try to use a digital assets management system like Razuna? In this case, I would actually be uploading files to specific folders so the URL would simply be showing where the files were being stored.
Any recommendations on best practices/approaches would be appreciated.
- The topic ‘PDF – urls: Rewriting or Creating Custom Folders’ is closed to new replies.