Forums

Editing wp_list_pages to display meta tags (4 posts)

  1. narkiej
    Member
    Posted 1 year ago #

    I am using 'wp_list_pages' on a page of a website I am building to display all of the parent pages.

    However each page has a thumbnail image which is assigned via meta tags.

    How can I include extra infromation to the generated list such as <img src="<?php $values = get_post_custom_values("page_thumb"); echo $values[0]; ?>" /> and other css etc.

    Is there a way I can break up the 'wp_list_pages' to see the full output code and pop things inside that?

    Many thanks for any response.

  2. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    You can't use your meta tags with wp_list_pages. Perhaps you need to use get_pages and build your own page listing instead?

  3. narkiej
    Member
    Posted 1 year ago #

    Thank you for your reply. Using this function will i be able to display my meta keys along with the page titles etc?

  4. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    In theory, you should be able to build up your own custom page list that incorporates anything that you want.

Topic Closed

This topic has been closed to new replies.

About this Topic