This is a fairly broad question: a client wants to have a publicly searchable member directory. So I'm looking at some old questions, such as Creating a public Members directory with CiviCRM in Wordpress using Profiles and Creating a public Members directory with CiviCRM in Wordpress using Profiles and shortcode with no luck.
Is there a shortcode for a publicly (not as member and not logged in) searchable member directory? (I have told the client this has privacy implications.)
This is currently being used but returns no results:
[civicrm component="profile" gid="11" mode="search" hijack="0"]
But not showing search results may be a result of no permissions for the anonymous user, as I read in one of the linked questions. I've given anonymous users the capabilities for profile listings and forms and profile listings in Administer > WordPress Access Control. I've set up a Smart Group and a profile, outlined on https://docs.civicrm.org/user/en/latest/organising-your-data/profiles/ . But that doesn't help.
Using: WP 5.2.4 CiviCRM 5.17.5