Yes that is not right
Can you send a screenshot of the settings?
Is this 8 separate blocks or a block with 8 users?
This is 8 separate blocks of 1 user each. There is no commonality between the users that would let me put all 8 in one block.
Screenshot at this link
This keeps resetting to this value (and it’s not even showing the ID entry field) instead of saving the user I’ve selected from the list.
This happens for all 8 blocks.
I just did a test with 2 blocks on the same page and it worked
Would like to understand what is wrong
Paul
Ok I see the problem lets fix that
If you just need 8 avatars in one block you can use the white list in the adv section
Pushed new version found the bug
Thank you for reporting it
Paul
I’ll play around with the whitelist and eagerly await your fix as well š
I updated the plugin then went back to edit the page. That doesn’t seem to have solved the issue.
Looking at the code view when I edit it:
<!-- wp:author-avatars/show-avatar {"alignment":"center","display":{"show_name":true,"show_biography":true},"user_id":"21"} /-->
After save and thehen I go back to edit, what is showing is instead:
<!-- wp:author-avatars/show-avatar {"email":"21","alignment":"center","display":{"show_name":true,"show_biography":true}} /-->
Looks like there’s some confusion around user_id
vs email
values.
Further, I don’t see a whitelist option in the advanced section of the block configuration. The only options are bio_length and Additional CSS Classes.
@pbearne any other ideas?
that is strange
the advance section only loads for Select by Role(s) and if Bio selected
I just did some testing and all these worked
<!– wp:author-avatars/show-avatar {“email”:”pbearne@gmail.com”,”user_id”:”-1″} /–>
<!– wp:author-avatars/show-avatar {“user_id”:”1″} /–>
<!– wp:author-avatars/show-avatar {“email”:”1″,”display”:{“show_name”:true,”show_email”:true},”user_id”:”-1″} /–>
<!– wp:author-avatars/show-avatar {“alignment”:”center”,”display”:{“show_biography”:true,”show_name”:true},”user_id”:”1″} /–>
<!– wp:author-avatars/show-avatar {“alignment”:”center”} /–>
Can you try on a new page?
Hey @pbearne
First, thanks for your plugin!
I noticed a bug that might be related to this one. I added one block to my site’s homepage and I set it to select users by role and I selected admin and editor roles. It seems this option is unset once we re-open the page to edit it and I need to set it up again otherwise it’ll return an error that no user id was specified. It will keep the other settings like link, sort by, sort order, size and corner size. It’s just the users selection that will loose the configuration and I need to set it up again each time I edit the page.
I ran a test with the other user selection options and they worked as expected. It seems the issue is only when I use the select user by role option.
Thanks!