使用get_post我怎样才能适应通过post meta发帖? (自定义帖子类型)

时间:2018-03-01 16:44:34

标签: php wordpress

我目前有以下通过ID抓取帖子。我需要改变它以使用名为'reference_title'的post元项的值。这是一个名为custom_forms的自定义帖子类型。我只想在该帖子类型中检索1个帖子

$post_details = get_post($post_id);

谢谢,

DIM3NSION

1 个答案:

答案 0 :(得分:0)