Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Blocks for user Profiles #55394

Open
bhubbard opened this issue Oct 16, 2023 · 2 comments
Open

Blocks for user Profiles #55394

bhubbard opened this issue Oct 16, 2023 · 2 comments
Labels
New Block Suggestion for a new block [Type] Enhancement A suggestion for improvement.

Comments

@bhubbard
Copy link

What problem does this address?

An easy way to display a users details on the front of the site.

What is your proposed solution?

Have several blocks to pull a user defaults fields, such as their username, id, bio, social links, etc.

Also a block query loop thru multiple users on the site.

@jordesign
Copy link
Contributor

@bhubbard Would this be different to the 'Author' block? #24952 has some suggested enhancements for that.

@jordesign jordesign added [Type] Enhancement A suggestion for improvement. New Block Suggestion for a new block labels Oct 17, 2023
@bhubbard
Copy link
Author

@jordesign Yes, this should be a little different from the 'Author' block. Although maybe based on that ticket you linked it could be a partial rename of some blocks.

As I believe that ticket discusses breaking up the author block into smaller blocks, like one for gravatar, and this I would agree. Although maybe it should be called 'User Gravatar' block? As a author, just happens to be a user who wrote the content for that post/page/etc. If we are not in a loop, these blocks could have a simple dropdown to choose the user for who we want to display the information.

I see one block being a 'User Query' block which brings to the UI query methods from wp_user_query. This would be a block that lets you create patterns using multiple users, such as showing all users with the same role. You might see this common with a 'team' block pattern, or membership site for example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
New Block Suggestion for a new block [Type] Enhancement A suggestion for improvement.
Projects
None yet
Development

No branches or pull requests

2 participants