How can I see the list of metadata fields for a custom post type


In a theme I want to use-> there is a custom post type. It has some extra metadata associated with it.

Now, I want to see the list of metadata fields (so that I can later programmatically insert data for that post type and also insert the metadata for such posts that I insert myself).

Yours sincerely,


  • Elliott Bristow
    • The Bug Hunter

    Hi @arvind,

    If the information is not provided in the documentation of the theme, the only think I can think of to suggest would be to grab the fields from the database and (temporarily) output them to the screen.

    You can try something like this:


    $custom_fields = get_post_custom($post_id);


    Give that a go and see what you get. I’m not sure how this would work if a particular custom field is not set for the post you are checking.

Thank NAME, for their help.

Let NAME know exactly why they deserved these points.

Gift a custom amount of points.