如何在高级菜单属性中添加自定义字段?
1 个回答
- 投票数
WordPress能够允许帖子作者为帖子分配自定义字段.
http://codex.wordpress.org/Custom_Fields
但是-更改菜单UI的功能可能与插件有关.不确定WordPress是否支持开箱即用的此类修改.
您可以编写一个使用Javascript的插件,并在需要的地方添加这些输入字段,然后保存它们,并在站点上使用菜单项时为菜单项添加过滤器.
WordPress has the ability to allow post authors to assign custom fields to a post.
http://codex.wordpress.org/Custom_Fields
But - changing the functionality of the menu UI is probably something you'd have to do with a plugin. Not sure if WordPress supports such modifications out of the box.
You could write a plugin that uses Javascript and adds those input fields where needed, then saves them, and adds a filter to the menu items when they are used on the site.
是否可以在菜单项中添加自定义字段?
我想做的是能够在wp菜单界面中为"法语导航标签"和"法语标题属性"添加一个字段.