我想创建一个用户可以提交帖子的系统。 为此,我将用户角色更改为贡献者。 它非常完美,用户可以提交帖子。 但我不喜欢用户可以访问wordpress面板。 我希望用户从主题中的自定义用户个人资料中提交他们的帖子。 我有没有任何功能或技巧?
答案 0 :(得分:0)
有两种方法可以做到这一点: 方法1:
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/
方法2:
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.