WordPress.org

Ready to get started?Download WordPress

Forums

Advanced Custom Fields
Fix the repeater not showing up when maximum rows set to 1 (3 posts)

  1. Alexandrie
    Member
    Posted 1 year ago #

    To fix the problem with the repeaters not showing up the content when you set maximum rows to 1

    Edit this file
    /wp-content/plugins/advanced-custom-fields/core/fields/repeater.php

    Around line 86 you should find this

    if( $field['row_min'] > count($field['value']) )

    Replace it with this

    if( $field['row_min'] >= count($field['value']) || $field['row_min'] == $field['row_limit'] )

    http://wordpress.org/extend/plugins/advanced-custom-fields/

  2. Zoe Rooney
    Member
    Posted 1 year ago #

    Curious - why would you want a repeater field with a max of 1? Doesn't that defeat the purpose?

  3. Alexandrie
    Member
    Posted 1 year ago #

    I sometimes use the repeaters to group elements together. It displays them nicer.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic