Support » Fixing WordPress » Variables of post_id

  • I have a code:

     'title_li' =>'',
     'link_before' => '<span class="meta">'.get_post_meta($post->ID, "span_title", true).'</span>
     )); ?>

    [Moderator Note: Please post code or markup snippets between backticks or use the code button.]

    It works only when I entered a page, but i need span_title it at every list item. How can i get span_title for every wp_list_pages elemet.

    Thanks for help and sorry for my bad english

  • The topic ‘Variables of post_id’ is closed to new replies.