Creating a public Member organisations directory with CiviCRM in Wordpress
The best practice for this is to create a profile (Administer menu > Customize Data and Screens > Profiles).  Check out this page in the section labeled "Displaying information on public pages", and also "Making directories with Profiles", further down that same page.