How to custom file name from Youtube with slug?

Posted in: Newspaper
Post count: 2

When I add new post with video on Youtube, upload file name maxresdefault.jpg or maxresdefault1.jpg. How to auto upload with name is slug?

Post count: 22421

Hello nasa8x,

I’m not sure what you mean but i’m just guessing here. When you set a video post format and insert a YouTube video. the theme will automatically grab the video thumbnail and use it as the featured image of the post. It grabs the maximum resolution of this thumb. If you want to change this YouTube thumbnail as featured video you can remove it from the featured image section: http://screencast.com/t/NOVqlCzVELxW and add a new picture of your choice.
If this is not what you mean, please provide more details so we can better understand.

Thank you!

Post count: 2

Hello Bogdan B,

Ex: http://domain.com/spl-2-a-time-for-consequences, when post save I want image file name is spl-2-a-time-for-consequences.jpg. Now image save is maxresdefault1.jpg

http://prntscr.com/8mwmy1

I hope you understand my desired.

Thank you and appreciate for your help!

  • This reply was modified 10 years by nasa8x.
Post count: 7909

Hi,

Unfortunately the function used in the video support file doesn’t have such an option, it can be done only with extra code and it is not easy to do. Here you can find the code if you want to modify – http://screencast.com/t/uuMA319Qsb
You can read more about this function here – https://codex.wordpress.org/Function_Reference/media_sideload_image

Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.