每个用户只能编辑一页-wordpress [英] Each user can edit only one page-wordpress

查看:25
本文介绍了每个用户只能编辑一页-wordpress的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有 wordpress 网站,可以让用户发布她的业务.
每个企业都有一个女贞页面,其中包含一些详细信息和图片库.
每个企业主都有一个用户.
我应该让每个用户(每个企业主)只能编辑她的页面,但要从自定义设计的编辑页面中进行.
它是这样工作的:
1. Joni 有一家水果店.
2. 我将从管理面板为 Joni 创建一个页面
3. 他将登录系统并链接到包含要填写的字段的页面.
4. 他填写后,网站上的每个访问者都可以看到这个页面
5. 如果 Joni 愿意,他可以再次登录并更改详细信息我想这样做:
1. 我将为企业主创建一个新用户.
2. 我将创建一个新页面并将用户 ID 插入自定义字段
3. wp 查询将此类数据用于用户编辑页面(该查询将显示自定义字段userID"为当前用户 ID 的页面)
4.用xml-rpc发送数据并更新细节

I have wordpress website that let the user publish her busines.
Each business has a privet page with some details and image gallery.
Each business owner has a user.
I should make, that each user(Each business owner) can edit only her page, but to do that from custom designed edit page.
It work like this:
1. Joni has a fruit shop.
2. I will create for Joni a page from admin panel
3. He will log into the system and will to link for page with fields to fill.
4. After he will fill it, each visitor on the site can see this page
5. If Joni want, he can login again and change details I think to do that like this:
1. i will create a new user for the business owner.
2. i will create a new page and will insert the user id in a custom field
3. a wp query will such the data for the user edit page(the query will display the page where the custom field 'userID' is the current user id )
4. with xml-rpc to send the data and will update the details

对于图库,我还没有找到解决方案.
我需要画廊将 assoat 到页面(也许使用自定义字段,如 'imagegallery1'、'imagegallery2' 等)

For the gallery, I didn’t find solution yet.
I need that the gallery will assoat to the page(maybe to use custom fields like 'imagegallery1','imagegallery2' etc.)

有人认为还有其他方法可以做这些事情吗?(编辑页面和图库)
谢谢!

Anybody think there is any another way to do this things?(the edit page and the gallery)
Thank's!

推荐答案

解决方案是在用户编辑/个人资料页面中创建用户自定义字段.

The solution is to create user custom fields in the user edit / profile page.

然后每个用户都有自己的数据要编辑.我在一些网站上使用了这个解决方案来创建会员俱乐部,每个会员都有自己的页面,上面有他们的数据、徽标等.您还可以使用他们的地址来创建谷歌地图.

Then each user have their own data to edit. I have used this solution in some webs to create member clubs, where each member have their own page whith their data, logo and so on. You can also use their address to create google maps.

这篇关于每个用户只能编辑一页-wordpress的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆