ThemeShaper Forums » Thematic

[closed]

How to loop through custom fields for a staff directory list

(5 posts)
  • Started 1 year ago by sixfootjames
  • Latest reply from sixfootjames
  • This topic is resolved
  1. Hi,

    I have a number of pages for staff members in my WP installation and each of these has additional custom fields for telephone, email, fax, a class room number.

    I need to create a directory listing page which will pull all the custom fields from these pages depending on the department they are in.

    The custom fields on my Staff Details page is working superbly but now I need a way to extract all that information to create a list for all the departments please.

    Many thanks!

    Posted 1 year ago #
  2. this is more of a general WP question. you're going to need to make a loop using query_posts (or get_posts)

    http://codex.wordpress.org/Function_Reference/query_posts
    http://codex.wordpress.org/Function_Reference/get_posts

    and all the custom fields are just post meta
    http://codex.wordpress.org/Function_Reference/get_post_meta

    that you'll be able to access in your custom loop

    Posted 1 year ago #
  3. Thanks Helga! I will look into that then ;)

    By the way, how do I change my profile pic on this forum?

    Posted 1 year ago #
  4. james, you need to associate your email with a gravatar account.

    http://gravatar.com/

    Posted 1 year ago #
  5. Done....seems it takes a little while. Thanks Helga!

    Posted 1 year ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.