title: Filter a page by a field name (Advanced Custom Fields & Wordpress)
body: <p>I am using Wordpress and Advanced Custom Fields.</p>
  
  <p>I want to be able to create pages that display excerpts of different pages or filters them.</p>
  
  <p>Example:  I have 10 different pages, each one about a hotel, they have various information stored in fields (Advanced Custom Fields) about the hotel, hotel name, location, facilities etc..</p>
  
  <p>The 10 hotels are child pages of a main page, the main page displays all of the hotels on it, but only certain details about the hotel, such as an excerpt of the description and an image.</p>
  
  <p>I created another Advanced Custom Field called Category, to try and test if I could get it to work I have only filled in the field with "Hotel" for a few of the actual hotel related pages.</p>
  
  <p>What I am struggling to do is write some code, so that page only displays the hotels that are under the category of "Hotel", I am writing the code in a template file, so the main Hotel page that lists all hotels is using this template.</p>
  
  <p>All are using pages and not posts, all information is stored in fields via Advanced Custom Fields plugin.</p>
  
  <p>I presume the code should be using <code>if</code> and <code>else</code> functions to work.</p>
  
  <p>If anyone can help me with this problem It would be much appreciated.</p>