-- 创造无限可能

wordpress开发:根据自定义的字段获取对应的文章、产品

2022-08-03 16:00:37
595 人浏览 3 人点赞
有用,点赞支持一下
$product_arr = get_posts([
'post_type' => 'product',
'meta_key' => 'name',
'meta_value' => '张三'
]);