最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Want to Add Custom Fields for Uploading video to WordPress Users from front end

programmeradmin1浏览0评论

I am trying to an add upload media option for the user profile.Which i was achieved with the help of This Link

By adding the code given in the above link on my theme's functions.php i am able to see the extra added field on user profile section once i logged in with admin screen.

What I want is :I want to show the upload media option for the front-end user to add their video.

I am trying to an add upload media option for the user profile.Which i was achieved with the help of This Link

By adding the code given in the above link on my theme's functions.php i am able to see the extra added field on user profile section once i logged in with admin screen.

What I want is :I want to show the upload media option for the front-end user to add their video.

Share Improve this question asked Mar 9, 2017 at 7:38 Nitish PaswanNitish Paswan 1441 gold badge1 silver badge10 bronze badges
Add a comment  | 

2 Answers 2

Reset to default 1

Use CMB2 library for Custom Field

https://github/WebDevStudios/CMB2/wiki/Adding-your-own-field-types

It is not a good idea to try to integrate wp-admin components to the front end of your site, It is easier, more reliable and more maintanable to simply create an upload form for the frontend of the site.

In fact, as soon as I googled it I found there is already a plugin to do exactly that. It looks to have solid ratings, many active installs and actively maintained.

Im sure extending this plugin to display a video the user uploaded to the site wouldn't be too much of an issue.

发布评论

评论列表(0)

  1. 暂无评论