ThemeShaper Forums » Thematic


How to loop through custom fields for a staff directory list

(5 posts)
  • Started 7 years 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 7 years 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)

    and all the custom fields are just post meta

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

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

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

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

    Posted 7 years ago #
  5. Done....seems it takes a little while. Thanks Helga!

    Posted 7 years ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.