Rest API不适用于WP中帖子类型的实时状态属性

当我尝试在WP(wordpress)中使用rest API发布真实状态属性数据时,

在” wp_posts”表中创建了”属性标题”和”属性内容数据”字段, 但是在” wp_postmeta”表中创建其他属性字段(属性)的功能不起作用。


#1


register_post_type函数设置参数

‘show_in_rest’=>是,

将此参数设置为true将在wp / v2命名空间中添加路由

来源:

https://www.srcmini02.com/65784.html

微信公众号
手机浏览(小程序)

Warning: get_headers(): SSL operation failed with code 1. OpenSSL Error messages: error:14090086:SSL routines:ssl3_get_server_certificate:certificate verify failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(): Failed to enable crypto in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57

Warning: get_headers(https://static.shanhubei.com/qrcode/qrcode_viewid_40787.jpg): failed to open stream: operation failed in /mydata/web/wwwshanhubei/web/wp-content/themes/shanhuke/single.php on line 57
0
分享到:
没有账号? 忘记密码?