Skip Navigation

[Resolved] No user information shown on a Layout user Archive

This thread is resolved. Here is a description of the problem and solution.

Problem:
I created a Layout with a User Archive as a cell and inserted some user fields in the loop of the View Archive.

They do not display on the front end of the author archive.

Solution:
Make sure that the user is the author of at least a post.
Otherwise, WordPress does not know what to display and have nothing to display with our ShortCodes.

A user needs to be an author to appear on an author archive.

This support ticket is created 6 years, 10 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- - 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00 14:00 – 20:00
- - - - - - -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 7 replies, has 2 voices.

Last updated by coetzeeG 6 years, 9 months ago.

Assisted by: Beda.

Author
Posts
#610183
Screen Shot 2018-01-26 at 17.00.45.png

I previously had some trouble displaying author information on a custom author page, we managed to sort it out but for some strange reason I can no longer see an author's information.

See: https://toolset.com/forums/topic/need-more-help-with-adding-content-to-author-archive/

As an example see: hidden link

What should be displaying is the relevant information mostly consisting of custom user fields. I can provide backend access.

I attached a screenshot of the layout.

Can anyone possible assist?

#610327

What changed since then?

If it worked, something must have broken it.

Either the post (native) is not there anymore, or some change has been made.
Eventually you assigned another layout to the Archive?

Does the user have some posts (authored)?

Mainly we can fix the issue easily if we know after what action it happened.
We just need to revert this.

If you do not recall what was the action making this happen, you may provide login details, so I can check the settings

#611079

I figured out, on your install, if you make the User which presents the issue an author of a native post, then the information is shown.
You need to upgrade the user's role (since you do not use Access) to allow this, but then, the information is shown.

I worked on that ticket that you had open with Nigel, and it was the same solution there.

The problem is, if an Author has no posts authored, WordPress omits the Author Archive.
You can test this without Toolset.

If you have an user, and that user is not author of any posts, Theme TwentySeventeen applied with WordPress (no Toolset) will return you a "It seems we can’t find what you’re looking for. Perhaps searching can help." message.
As soon the user becomes author to a post the user Archive starts spitting out contents.

When you now have Views in the game and create a WordPress Archive for the Users (Author archives), in the case the user has no posts we display the "no items found" message by default.
No information on the user is shown even if added in the HTML editors of the View's Loop.

If you make the user author to one post at least, it will display it.

If you bring Layouts in this game it is the same, as far I tested and am aware of.

The problem here is that when the user is not an author it won't display on these kind of archives.

If you need to display user data, it's suggested, in this case, to create User Views instead, whereas you can call the user data always.

As above shown, this is unfortunately not different if you remove Toolset from the process.

What I suggest is to work with User Views.

Are you familiar with them? I can help you with, if you need assistance.

#611291

Thanks very much for the explanation Beda,

I am not familiar with user views at all, will appreciate your help.

#611361

We don't have an explicit document that handles user Views.
Basically it's the same as Post Views, just, you cannot have as much flexibility as for Post views, and logically you will query and display users, not posts.

I created a reference View in your install "The Toolset User View".
That View shows all users in a list, and along with the user name as well you can now insert Fields or other things belonging to the users.

If you need to limit this list of users, you can do so in the Query Filter Settings, but yo u cannot create a front end search.

This View can now be displayed anywhere on your website.

This should give a general idea of how to use User Views.

Please let me know if you need further help.

#612056

Hi Beda,

Thanks very much for the help, I'm going to give this a go.

I'm going to keep the ticket open, just in case bit will respond as soon as get it right.

#612137

Sure!

The "Toolset Robot" will notify you once the ticket get's close to it's end of life and then you can keep it open by replying, or however the situation will require by then.

You may also at all time open a new one if any issue with it comes up.

Thank you!

#616054

Sorted