Thanks or the report I will add this fix to the next version of mdocs.
I try to edit the plugin with function sanitize_title but not working. Hope you fix it soon. Thank you!
take a look at the file mdocs-functions.php line 332 and 344
'post_title' => $upload['name'],
'post_title' => basename($upload['name']),
you can sanitize the titles here.
Im not getting the same results as you are.
I created a file called:
Cuộc cách mạng Một-cọng-rơm
the slug to the post is
/mdocs-posts/cuoc-cach-mang-mot-cong-rom/
which is the correct format. What version of WordPress are you using?
I’m using WordPress 4.7.1.
I were following your instruction and add:
‘post_name’ => wp_unique_post_slug(sanitize_title($upload[‘name’]))
It’s working well.
You can try some file:
– Cuộc sống muôn màu;
– Cảm ơn bạn vì đã tạo ra plugin này;
– Plugin này rất hữu ích với tôi;
Thank you!
Good you have it working now. I tested the other file names, not problems again.
Thank you for reply me.
Can you add option to add extenal download link for a file. I think that’s useful.
external download link? Please explain what you mean by that.
I mean, beside option to upload file from computer, we have option to attatch a link to download file, Google Drive for example. To save host resource.
-
This reply was modified 9 years, 4 months ago by
cachmangrom.
oh I see, yes that has been asked before and is on the feature request list.
And I think you should add author property per documment. Author mean who write not who upload document.
thanks I will add it to the feature request list.