Viewing 12 replies - 1 through 12 (of 12 total)
  • Plugin Author bhaldie

    (@bhaldie)

    Thanks or the report I will add this fix to the next version of mdocs.

    Thread Starter cachmangrom

    (@cachmangrom)

    I try to edit the plugin with function sanitize_title but not working. Hope you fix it soon. Thank you!

    Plugin Author bhaldie

    (@bhaldie)

    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.

    Plugin Author bhaldie

    (@bhaldie)

    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?

    Thread Starter cachmangrom

    (@cachmangrom)

    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!

    Plugin Author bhaldie

    (@bhaldie)

    Good you have it working now. I tested the other file names, not problems again.

    Thread Starter cachmangrom

    (@cachmangrom)

    Thank you for reply me.

    Can you add option to add extenal download link for a file. I think that’s useful.

    Plugin Author bhaldie

    (@bhaldie)

    external download link? Please explain what you mean by that.

    Thread Starter cachmangrom

    (@cachmangrom)

    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 7 years, 3 months ago by cachmangrom.
    Plugin Author bhaldie

    (@bhaldie)

    oh I see, yes that has been asked before and is on the feature request list.

    Thread Starter cachmangrom

    (@cachmangrom)

    And I think you should add author property per documment. Author mean who write not who upload document.

    Plugin Author bhaldie

    (@bhaldie)

    thanks I will add it to the feature request list.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Vietnamese Friendly Permalink’ is closed to new replies.