I’ve been tearing my hair out trying to create a list of users linked to their profile page.
Having seen somewhere else on the forum that the ‘archive’ page is a single page with a “Users” query loop, and the Single User template needs to be set as an “Author” Archive in template conditions (very unintuitive!!) - I’m almost got it working as desired…
However the link to the specific user’s profile only shows the correct name sometimes - for some users, not all… Sometimes the author of the template (ie me) gets used as the author name.
Which is really confusing!!
The other thing confusing is when I use the “author” element to output the user’s name, it gives the correct “user display name”… but if I use a “heading” element set to dynamic content “author name”, it uses a different name - probably combining first and last names from their profile.
Hi @MT24, the description above doesn’t sound right.
Could you please share temporary admin access to help@bricksbuilder.io with a link to this forum thread so I can look at your setup and suggest solutions?
Hi Charaf, thanks for taking a look. I know it sounds odd, but it’s been a real struggle to link the query loop to a single user. The only link that worked was to manually add /author/ followed by WP username.
What is so strange is how some of the people’s names are correct and some default to the author of the page. I have triple checked to see if those users have any difference in their content, and I can’t see any.
All ACF fields are working fine.
BTW, find-a-teacher page is not active in any link (ie not public), but some of the user info is output on the join-a-class page, which IS public.
Thank you so much for sharing access and all the details
I just noticed that the author template was used as a “Single” template instead of an “Archive”. You also have an unused “Archive (author)” template that lists all authors (seems to have the same content as the ‘Find A Teacher’ page). The author templates in WordPress are intended to function as archive pages.
However, setting the author template as an Archive type does not resolve all issues. Specifically, the “Post title element” is not displaying in the builder, and there’s a problem with the {post_title} dynamic data tag & “Author element”. I have recorded these in our internal bug tracker