WordPress.org

Ready to get started?Download WordPress

Forums

ACF-Relationship Type Fields Making Arrays appear as text (1 post)

  1. DJLunacy
    Member
    Posted 1 year ago #

    I'm not 100% sure my structure is correct but what I need to do is this.

    I have a post with the custom fields, in my dropdowns i pull them from my custom page types.

    Field-1 --- Has a list of dropdown options where I would like them to pick multiple options.

    the multiple options have respective pages as a CPT.

    So they are all pulling from this type.

    When the field is saved it saves it as an array, with the numbers of the Pages/Posts.

    ex. Brand:a:1:{i:0;s:4:"3538";}

    What I'm wondering is when I display the field, how do I get the field to output the Names instead of the number values?

    They can either link to the custom page or just be plaintext.

    It looks like the object field might work, however searching and selecting the Pages/Posts when needing more then one isn't as intuitive for the user.

    Thank You.

Topic Closed

This topic has been closed to new replies.

About this Topic