【发布时间】:2016-12-06 03:28:59
【问题描述】:
我想创建一个用户可以提交帖子的系统。 为此,我将用户角色更改为贡献者。 而且很完美,用户可以提交帖子。 但我不喜欢用户可以访问 wordpress 面板。 我想用户从主题中的自定义用户配置文件提交他们的帖子。 我有什么功能或技巧吗?
【问题讨论】:
标签: wordpress user-roles
我想创建一个用户可以提交帖子的系统。 为此,我将用户角色更改为贡献者。 而且很完美,用户可以提交帖子。 但我不喜欢用户可以访问 wordpress 面板。 我想用户从主题中的自定义用户配置文件提交他们的帖子。 我有什么功能或技巧吗?
【问题讨论】:
标签: wordpress user-roles
有两种方法可以做到这一点: 方法一:
There are certain plugins that you can use to accomplish the task.
The below is an example:
https://wordpress.org/plugins/user-submitted-posts/screenshots/
方法二:
You too can achieve this functionality by writing a piece of code that will insert the data in the posts table. for that you have to create a page template and create a form for that template and write code that will work on submit of the form.
Make sure the form data gets inserted into the posts table.
【讨论】: