Support

Account

Home Forums General Issues Create a table of field values of all posts of a custom post type?

Helping

Create a table of field values of all posts of a custom post type?

  • Hi,

    I am wanting to display a complete table of all the entered custom fields from a custom post type. Is there a way that I can do this, or a tutorial of how to achieve this?

    Ideally there will be rows of the fields I have: project name, project manager, project start date, project complete date, project live date.

    Ciaran

  • The only way I know of to do a query for the posts, create a table and then loop through the posts and create the table. You’ll probably need to create a custom page template if you want to do this, or alternately on a custom post type archive page.

    The get_fields() function can get all the fields at once rather than getting them one at a time, may help if you have lots of fields to retrieve. http://www.advancedcustomfields.com/resources/get_fields/

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Create a table of field values of all posts of a custom post type?’ is closed to new replies.