When you wish to embed a SharePoint Online List in WordPress and allow users that do not have an enterprise account in your Microsoft Entra ID / Azure AD directory, you must configure support for an application-only scenario.

The steps to give anonymous users access to a SharePoint site collection are the same for a library and for a list. Therefore please consult Embed a SharePoint Library in WordPress > Advanced | Access for anonymous users instead.