Support

Account

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

Helping

Relationship loop: show custom field names

    • pbolger

    • October 24, 2013 at 8:34 am

    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?

    • Elliot

    • October 24, 2013 at 4:04 pm

    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)

You must be logged in to reply to this topic.

We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Cookie Policy. If you continue to use this site, you consent to our use of cookies.