Yeah, it is weird.
I made a comment with the URL, but it’s private – not sure if you can see that or not – as the site is still in dev. I’ll try that tomorrow and open a ticket if it doesn’t work.
Thanks!
This reply has been marked as private.
@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.
Hey @acf-support,
I tried $count = count( get_field( 'positions' ) );
but <?php echo $count;?>
still echos “1”
Here’s the field in the admin:
and here it is on the page:
. Not sure if that helps or not.