Answers.Body: <p>Add/edit 'Country' field to the profile and make is searchable.</p>
  
  <p><a href="https://i.sstatic.net/7vBbE.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/7vBbE.png" alt="enter image description here"></a></p>
  
  <p>This will allow you to filter the results based on country in the directory listing.</p>
  
  <p>Demo: <a href="http://civi.intdms.com/civicrm/profile?gid=14&amp;reset=1&amp;force=1" rel="nofollow noreferrer">http://civi.intdms.com/civicrm/profile?gid=14&amp;reset=1&amp;force=1</a></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-12T16:18:56.360Z
Answers.Text: Thanks, will try this.  Any ideas for how to embed short code with that variable so the list is included on a wordpress page that has other non-civicrm content
Answers.UserDisplayName: Nina Gonzalez
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2016-07-07T11:55:11.597Z
Answers.LastActivityDate: 2016-07-07T11:55:11.597Z
Answers.UserDisplayName: Ghost
Body: <p>I need to create a public list from civicrm. That part is straightforwards. A profile with shortcodes into WP would work. But the list needs to be filtered by country.  So it is not practical to have a profile for every country. What is the best way to embed a public list in a WordPress page based on a profile combined with a variable for country?</p>
  
Tags: <wordpress><profile><directory>
Title: Embedding a listing or directory with variables
ThreadText: # Embedding a listing or directory with variables
  
  (Asked by: username_0 on 2016-07-06)
  
  I need to create a public list from civicrm. That part is straightforwards. A profile with shortcodes into WP would work. But the list needs to be filtered by country. So it is not practical to have a profile for every country. What is the best way to embed a public list in a WordPress page based on a profile combined with a variable for country?
  
  **Tags:** wordpress, profile, directory
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2016-07-07. Score: 2
  
  Add/edit 'Country' field to the profile and make is searchable.
  
  [![enter image description here](https://i.sstatic.net/7vBbE.png)](https://i.sstatic.net/7vBbE.png)
  
  This will allow you to filter the results based on country in the directory listing.
  
  Demo: <http://civi.intdms.com/civicrm/profile?gid=14&reset=1&force=1>
  
  > **Comments:**
  > **username_0**: Thanks, will try this.  Any ideas for how to embed short code with that variable so the list is included on a wordpress page that has other non-civicrm content  
  
  ---
  
  