Support

Account

Home Forums Add-ons Repeater Field Relationship loop: show custom field names

Helping

Relationship loop: show custom field names

  • Not sure if this is an ACF issue specifically, but I have a repeater field which is pulling standard posts and all-in-one calendar events.

    Using the template loop in the documentation works fine for the standard WP post fields, but doesn’t show the ai1 custom fields.

    Trouble is, I don’t know what the custom fields are called, and var_dump doesn’t show custom fields. Is there a way to query ‘all fields’ to show what’s actually present in the custom post type?

    Even better, is it possible to get the_content to use a preexisting template (ie, is there a ‘calendar event’ ‘archive view’ template somewhere) for custom post types, or does each field have to be called individually?

  • Hi @pbolger

    Sounds like you need to research the WP codex for functions which get all the postmeta for a given post

    Thanks
    E

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

The topic ‘Relationship loop: show custom field names’ is closed to new replies.