似乎无法获取此信息,但如何从父级加载子级页面中的信息?
也就是说,我正在看附件,我可以很容易地获得家长ID,但不知道如何获得家长头衔、摘录等。
// attachment content above here then want to get and show some parents\' content
echo $parent = get_post_field(\'post_parent\', $id);
echo the_title(); // this still shows the childs title...
感谢您的帮助!丹