-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Author block: enhancement ideas #24952
Comments
A couple related suggestions based on using this block in Twenty Twenty-One Blocks:
|
This came up as part of the second FSE outreach call for testing as being a bit confusing. "Write byline..." is both so tiny and not quite clear as a call to action. It's quite easy to miss as an option too particularly if you focus away from editing the block specifically: focus.byline.mov |
Including feedback from the fifth call for testing for the FSE Outreach Program as an additional idea/improvement: Vertical Alignment!
|
I found this issue, as I was recently experimenting with the Post Author block, and it's impossible to get looking even half-way decent in it's current state:
So I second @carolinan in questioning the readiness of this block for 5.8. |
I agree with @fklein-lu's comment that the elements should be individual blocks, with patterns suggested in a similar way to how the Query block does it. The optional "All posts by [author]" link suggestion by @alaczek could be accomplished by opening up the block-editor-link-control to return matching authors, much like how it currently returns other archives such as tags/categories. Would this be feasible? |
I am sorry in advance if this is not allowed, but I seen this and it reminded me of this post. https://www.honeybook.com/email-signature. I love the Author block directions and if it becomes something people can use as a signature, it would be a value added feature. For example, if the author can have access to it for their posts globally, maybe as part of their .org account. |
I think a general avatar block would be a good idea #30575 |
I'm not totally sure about this, but maybe @youknowriad knows?
In general I think the current block is just too complicated and opinionated. I'd prefer that for 5.8, it only showed the author name, and optionally linked to the author page. This would be a better 1:1 companion to the Post Date, Post Categories, and Post Tags blocks that it's going to be sitting next to most of the time. We could add additional features to that, but we're missing that simple baseline today. |
Splitting the blocks is a simple task. Ideas: Name:
Avatar:
Biography:
|
We really need to split this block into:
These are what I'd consider "must haves" for just the most basic of blog post design for theme authors.
We need to think bigger than this and just outside of the Post Author block. All "post metadata" type of blocks need to allow for prefix/suffix text. For example, here are some common patterns for post bylines/meta areas:
The concept of a "separator" element is pretty common here too. However, that is a bit problematic at the moment because all of these post meta blocks are block-level HTML elements. It's an easy fix with a custom |
Yes there needs to be a way to set both display and position ( like sticky) for well, all blocks, it just needs to be implemented. |
I don't think the name needs to be limited to post author. If the name is a registered user it can be used to create things like staff or attendee pages. |
The post author gets pulled from the post context, and it is a pre-established concept in WordPress. We should not blurry these lines by allowing users to arbitrarily choose users. That should be a different block. |
The block displays an option with a list of users, depending on if they have editing capabilities or not. |
That's a case for which there's prior art, and using blocks to solve this on an ad-hoc basis is not the right approach--and something we shouldn't encourage. The post author block displays the single author of a post, and that's all it ever should do. |
Having a post author block does not mean that there is no other use case for displaying a name and an avatar, including in the comments area. |
I could see "Post Author Name/Avatar/Bio/Etc." blocks just being variations of "User" blocks of the same type. There are tons of use cases for general-purpose user blocks. And, the post author is nothing more than a user object. |
I wonder if, for 5.8, we should just start with removing the byline? It is difficult to use because of it's size and it may be easier to just have a paragraph outside the block. |
I fully agree. IMO each of the fields in both a post and a user should be available as separately selectable blocks or block variants. Then the Post Author block would just be a pattern. |
The post author block could be a variation of a generic user block. However that's an implementation detail. My concern is about the user experience:
That's why I am so insistent on keeping this issue focused on the task at hand: a straightforward post author block. I consider we all agree the current implementation isn't great, and we need something better now, as 5.8 is approaching fast. Therefore I propose that we break this issue up:
|
We now have separate author name, avatar and biography blocks. We do not have separate bylines or "view all posts by" blocks. -Experienced users will be able to add these manually, but do you think we need a "view all posts by" block? 🤔 I think that core should include some block patterns for this. We could start with some based on the designs in the first post. |
It would be good to have a decision about if the author and avatar blocks are going to be in 6.0 and if that should include new patterns. |
@carolinan, on the technical side of things I'm more than happy to promote Avatar blocks to stable state. Which new blocks are we talking about? |
The blocks are: I still have concerns about the overlap between these and the existing post author block. |
These blocks are also providing to be confusing as recent feedback from the thirteen call for testing for the FSE Outreach Program shows:
|
I'd actually like to deprecate the old Post Author block, or at least remove it from the inserter. The original output is more of a pattern. |
@justintadlock, we surely can remove the Post Author block from the inserter once we expose lower level author blocks. Unfortunately we need to keep it in the code for backward compatibility, but we can include the note it’s deprecated like for the following blocks: |
While testing the PR by Carolina I came across a few things that could be adjusted. Post Author name and Biography blocks are missing text icons in the toolbar controls Link modal suggestion: wp-admin, Dashboard, author, author archive and other unique WP links Editing the text in Post Author Name block |
Noting that the inability to link to an author's archive came up in group testing as part of the thirteenth call for testing. With the new author template being available, it seems odd to then be unable to link to the specific created template. |
From what I can tell, this block is not going to make it into 6.0 based on this discussion in core editor. From @adamziel: "The author name block has a generic version coming after 6.0. It will be usable in posts, comments, and outside of these. But it’s not there right now." I currently don't see it in 6.0 Beta 2. Is that correct? If so, the issue remains that for 6.0 we need a way to link to the Author archives in order for the new Author template to be more useful/high impact. If this is just in limbo right now, that's totally cool. This is just causing some wider confusion and it would help to get more clarity on what's planned for 6.0 vs beyond. Thanks in advance for more insights. cc |
This is an unfortunate consequence of the author name block not making it into 6.0. Maybe for now we just have to accept that this means that author template won't be that useful for now. |
Inspired by @annezazu's FSE outreach call #13 and Justin's WP Tavern article, I have been working on an author template using Cover block as its header. The author name block was working expected both on the editor and on the browser in the front end. When I recently returned to the project, the author name works on the editor, but the author name is not displaced on the front. Testing environment:
@annezazu: I was wondering whether this was with me only or others are also experiencing similar problem. |
@tinjure20 Exciting to hear you are exploring! Thanks for reporting back what you found. By chance, does this author not have any posts yet? If so, I bet you're running into this problem: #40431 Can you confirm? |
@tinjure20 mind opening a new issue for this and tagging me? Want to preserve this thread for discussing enhancement ideas but still want to ensure this is dug into :) |
I believe that the various new features and ideas proposed here can now be realized using individually divided blocks (Avatar, Author Name, Author Bio). Instead, I think we need to discuss whether to implement the proposed functionality in this Post Author block, or to deprecate this block without implementing any new functionality. If it should be deprecated, I think this issue can be closed. Instead, there is #53427 which suggests deprecating this block. |
I'd like to see "Author Avatar" as a separate block, and then build a pattern out of the Avatar, Name, Bio. A pattern inside a row with a stack seems to work nicely. I built one using an image block, it's not dynamic so it doesn't work for this but the layout was perfect for an author section. Image block supports rounding and sizes, border etc. Ideally the avatar block would extend from image block and provide most of those options as well. Not everyone uses Gravatar, so the other issue is currently I found users with no gravatar result in a placeholder box... instead if no gravatar image is found, the image should be hidden so the output still looks good. It's a shame there isn't a way to upload a profile image for each user. For those using ACF we can build a user image field, then build a block to dynamically pull that from the post author... but I guess building an entire field system so we can have profile images instead of Gravatar is probably outside the scope, got to work with what is available for a core block. |
I wanted to bring up a few enhancement ideas for the Author block, based on popular patterns found in themes:
Here are some visual examples:
Describe the solution you'd like
Author block combines a couple elements - avatar, name, bio, and byline placeholder. Those kinds of complex blocks tend to be tricky because they are inflexible and would require a lot of block options/styles to allow for different design variations. How about if we broke it up into individual blocks (author name, avatar, and bio)? We could then put them back together however we wanted, and offer as block patterns. The downside would be the block pattern discoverability which isn't great right now. Or maybe we could have both the combined author block and the separate blocks?
The text was updated successfully, but these errors were encountered: