2. Next, you can include this shortcode through a "Fields and Text" block, within your view's "View Search" block, where you'd like to show this author search field:
( example screenshot attached: screenshot-post-author-search.png )
[list-of-authors]
3. The last step would be to add a 'post author' query filter in the view's 'Content Selection' section so that it can be linked to the post author ID passed through the URL parameter 'author-filter', coming from the post author search field.
( example screenshot attached: screenshot-post-author-query-filter.png )
I hope this helps and please let me know if you need any further assistance with this.
Thank you for the solution. However, "Fields and Text" currently has an issue with WordPress 6.1 and downgrade is not my option. Could you please let me know if there are other solutions without "Fields and Text", or I have to wait for "Fields and Text" issue has been fixed.
You don't necessarily have to use the "Fields and Text" block to make this shortcode work. As an alternative, you can use the "Shortcode" block or the simple "Custom HTML" block.