Support

Account

Home Forums General Issues "Array" displaying rather than selections

Solving

"Array" displaying rather than selections

  • Very nice plugin…thank you.

    Question for you that I’ve seen posted but I don’t see any responses. If you could help with this I would appreciate it.

    With checkboxes I am having issues with display of selections far as viewing the page.

    Rather than the selections that are chosen, I am seeing, for example, “Locations: Array”. This in another WP site I tested it on, as well. Same “Array” posting rather than selections. So I don’t think it would be a plugin conflict, etc.

    In the “Edit Field Group” screen other fields work as they should but checkboxes, no. So for Location, for example again, I have “Choices” of:

    Central : Central
    Northwestern : Northwestern
    Eastern : Eastern
    Southwestern : Southwestern

    Nothing in default values. Suggestions? Am I missing something simple?

    Thank you,

    Bob H

  • It sounds like everything is working, but you are just using the wrong code to display it in the front.

    Try using something like:
    Locations: <?php echo implode( ', ', get_field( 'field_name' ) ); ?>

    Take a look at the documentation for Checkbox here: http://www.advancedcustomfields.com/resources/checkbox/
    look under Displaying multiple values

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

The topic ‘"Array" displaying rather than selections’ is closed to new replies.