0
我有一个wordpress网站,并在仪表板中,我添加了一个新的菜单项 - 属性,它有一个元字段列表,如位置,价格等。Wordpress的功能 - 添加插件到新的分类
但也是为了这个,我想添加附件插件到它,所以每个新的单个属性将能够添加一个我已经设置的图片库的附件。我该怎么做呢?
至于更多的相关信息,我在我的functions.php定义是:
$property->add_meta_box(
'Property Info',
array(
array(
'name' => 'price',
'label' => 'Price',
'description' => 'Leave Blank for TBC',
'type' => 'text'
),
array(
'name' => 'bedrooms',
'label' => 'Bedrooms',
'type' => 'text'
),
array(
'name' => 'location',
'label' => 'Location',
'type' => 'select',
'options' => get_array_of_locations(),
),
array(
'name' => 'property_type',
'label' => 'Type',
'type' => 'select',
'options' => get_array_of_property_types(),
),
array(
'name' => 'postcode',
'label' => 'Postcode',
'type' => 'text',
),
)
);
但我无法弄清楚如何http://wordpress.org/extend/plugins/attachments/installation/添加到我的新$财产