0
我會在側欄中使用wp_list_pages和afc。wp_list_pages with afc(高級自定義字段)
列表頁面的正常輸出是這樣的
<ul>
<li>page 1</<li>
<li>page 2</<li>
<ul>
<li>page 2.1</<li>
<li>page 2.2</<li>
<li>page 2.3</<li>
</ul>
<li>page 3</<li>
<li>page 4</<li>
<li>page 5</<li>
<li>page 6</<li>
</ul>
些頁面自定義字段,我想這樣的事情
<ul>
<li>page 1</<li>
<li>page 2 <span> - **custom field info**</span></<li>
<ul>
<li>page 2.1</<li>
<li>page 2.2<span> - custom field info</span></<li>
<li>page 2.3</<li>
</ul>
<li>page 3</<li>
<li>page 4<span> - custom field info</span></<li>
<li>page 5</<li>
<li>page 6</<li>
</ul>
與我想這經常WordPress的自定義字段:
wp_list_pages("title_li=".$post->ID."&meta_key=key");
但這只是過濾器和只顯示我的網頁與關鍵而不是額外的。 我該如何解決這個小問題?任何(其他)想法?
謝謝