Home › Forums › Add-ons › Repeater Field › Query Posts for Repeater Subfield "User" Equal to Current Author › Reply To: Query Posts for Repeater Subfield "User" Equal to Current Author
Hi James,
I uploaded the JSON file to DropBox here.
I’m only interested in row 1 from the repeater list which contains the User ACF field targeting author ID 8 which is the author profile we’re viewing.
Debug:
array(2) {
[0]=>
array(8) {
["people_list_person_login"]=>
bool(true)
["person_list_user"]=>
array(11) {
["ID"]=>
int(8)
["user_firstname"]=>
string(8) "John"
["user_lastname"]=>
string(9) "Smith"
["nickname"]=>
string(18) "John Smith"
["user_nicename"]=>
string(15) "johnsmith"
["display_name"]=>
string(18) "John Smith"
["user_email"]=>
string(21) "[email protected]"
["user_url"]=>
string(0) ""
["user_registered"]=>
string(19) "2016-11-09 15:25:48"
["user_description"]=>
string(0) ""
["user_avatar"]=>
bool(false)
}
["person_list_name"]=>
string(0) ""
["person_list_title"]=>
string(0) ""
["person_list_affiliation"]=>
string(0) ""
["person_list_location"]=>
string(0) ""
["person_list_url"]=>
string(0) ""
["person_list_photo"]=>
bool(false)
}
[1]=>
array(8) {
["people_list_person_login"]=>
bool(false)
["person_list_user"]=>
NULL
["person_list_name"]=>
string(17) "Jane Smith"
["person_list_title"]=>
string(0) ""
["person_list_affiliation"]=>
string(0) ""
["person_list_location"]=>
string(0) ""
["person_list_url"]=>
string(47) "http://domain.com/staff/jane-smith/"
["person_list_photo"]=>
array(18) {
["ID"]=>
int(2357)
["id"]=>
int(2357)
["title"]=>
string(16) "JaneSmith"
["filename"]=>
string(21) "JaneSmith.jpeg"
["url"]=>
string(74) "http://domain.com/wp-content/uploads/2014/05/JaneSmith.jpeg"
["alt"]=>
string(0) ""
["author"]=>
string(1) "1"
["description"]=>
string(0) ""
["caption"]=>
string(0) ""
["name"]=>
string(16) "janesmith"
["date"]=>
string(19) "2014-05-01 00:00:00"
["modified"]=>
string(19) "2016-11-14 18:37:32"
["mime_type"]=>
string(10) "image/jpeg"
["type"]=>
string(5) "image"
["icon"]=>
string(62) "http://domain.com/wp-includes/images/media/default.png"
["width"]=>
int(968)
["height"]=>
int(974)
["sizes"]=>
array(30) {
["thumbnail"]=>
string(82) "http://domain.com/wp-content/uploads/2014/05/JaneSmith-200x200.jpeg"
["thumbnail-width"]=>
int(200)
["thumbnail-height"]=>
int(200)
["medium"]=>
string(82) "http://domain.com/wp-content/uploads/2014/05/JaneSmith-298x300.jpeg"
["medium-width"]=>
int(298)
["medium-height"]=>
int(300)
["medium_large"]=>
string(82) "http://domain.com/wp-content/uploads/2014/05/JaneSmith-768x773.jpeg"
["medium_large-width"]=>
int(768)
["medium_large-height"]=>
int(773)
["large"]=>
string(74) "http://domain.com/wp-content/uploads/2014/05/JaneSmith.jpeg"
["large-width"]=>
int(968)
["large-height"]=>
int(974)
["post-feat-img"]=>
string(82) "http://domain.com/wp-content/uploads/2014/05/JaneSmith-646x650.jpeg"
["post-feat-img-width"]=>
int(646)
["post-feat-img-height"]=>
int(650)
["page-banner"]=>
string(82) "http://domain.com/wp-content/uploads/2014/05/JaneSmith-968x130.jpeg"
["page-banner-width"]=>
int(968)
["page-banner-height"]=>
int(130)
["slideshow"]=>
string(82) "http://domain.com/wp-content/uploads/2014/05/JaneSmith-968x550.jpeg"
["slideshow-width"]=>
int(968)
["slideshow-height"]=>
int(550)
["internal-slideshow"]=>
string(82) "http://domain.com/wp-content/uploads/2014/05/JaneSmith-830x575.jpeg"
["internal-slideshow-width"]=>
int(830)
["internal-slideshow-height"]=>
int(575)
["home-pod"]=>
string(82) "http://domain.com/wp-content/uploads/2014/05/JaneSmith-320x195.jpeg"
["home-pod-width"]=>
int(320)
["home-pod-height"]=>
int(195)
["annual-report-thumb"]=>
string(82) "http://domain.com/wp-content/uploads/2014/05/JaneSmith-150x188.jpeg"
["annual-report-thumb-width"]=>
int(150)
["annual-report-thumb-height"]=>
int(188)
}
}
}
}
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.