提交来自没有 wordpress 面板的用户的帖子
Submit posts from users without wordpress panel
我想创建一个用户可以提交帖子的系统。
为此,我将用户角色更改为贡献者。
而且很完美,用户可以提交帖子。
但我不喜欢用户可以访问 wordpress 面板。
我想让用户从主题中的自定义用户配置文件提交他们的帖子。
我有什么功能或技巧吗?
有两种方法可以做到这一点:
方法一:
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.
我想创建一个用户可以提交帖子的系统。 为此,我将用户角色更改为贡献者。 而且很完美,用户可以提交帖子。 但我不喜欢用户可以访问 wordpress 面板。 我想让用户从主题中的自定义用户配置文件提交他们的帖子。 我有什么功能或技巧吗?
有两种方法可以做到这一点: 方法一:
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.