Support

Account

Home Forums Add-ons Repeater Field Post Object in Repeater Field. Need Rows Count Reply To: Post Object in Repeater Field. Need Rows Count

  • @acf-support,

    get_field( ‘positions’ ) yielded:

    array(2) {
      [0]=>
      array(1) {
        ["position"]=>
        object(WP_Post)#597 (24) {
          ["ID"]=>
          int(243)
          ["post_author"]=>
          string(1) "1"
          ["post_date"]=>
          string(19) "2016-06-17 14:35:53"
          ["post_date_gmt"]=>
          string(19) "2016-06-17 14:35:53"
          ["post_content"]=>
          string(1271) "

    get_field( ‘positions’, 10 ) yielded:

    array(2) {
      [0]=>
      array(1) {
        ["position"]=>
        object(WP_Post)#597 (24) {
          ["ID"]=>
          int(243)
          ["post_author"]=>
          string(1) "1"
          ["post_date"]=>
          string(19) "2016-06-17 14:35:53"
          ["post_date_gmt"]=>
          string(19) "2016-06-17 14:35:53"
          ["post_content"]=>
          string(1271) "

    As well as the content for both posts.