Answers.Body: <p>Okay, solved. </p>
  
  <p>Was an idiot and wasn't using the right tag to output the results of the query. </p>
  
  <p>Sorry and thanks!</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-24T13:10:58.687Z
Answers.Text: Glad you got it sorted out, Cole! Can you choose this as the answer so the question will be closed?
Answers.UserDisplayName: Aaron Berkowitz
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-24T16:50:41.933Z
Answers.Text: Can you post the tag you used to get things working for folks finding this post in the future?
Answers.UserDisplayName: Anna_MediaGirl
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-24T10:55:20.100Z
Answers.LastActivityDate: 2015-09-24T10:55:20.100Z
Answers.UserDisplayName: Cole Henley
Answers.Body: <p>How about</p>
  
  <p><code>{% set entry = craft.entries.sectionId(productsAndMarketsLandingPage.id).first() %}</code></p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-24T10:18:21.427Z
Answers.Text: Sadly still returning empty. We are using locales on the site (with English defaulting to root) - not sure if that is what is causing the problems
Answers.UserDisplayName: Cole Henley
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-24T10:07:46.820Z
Answers.LastActivityDate: 2015-09-24T10:07:46.820Z
Answers.UserDisplayName: Steven Grant
Body: <p>I've got a product section on a website where individual product entries are categorised. On the section landing page all the products are listed organised by category. On the individual category pages only the product entries relevant to that category are shown.</p>
  
  <p>The issue I’m having is that for the category landing page I want to pull in the Section landing page content. However when I try the following:</p>
  
  <pre><code>{% set entry = craft.entries.section(‘productsAndMarketsLandingPage’).first() %}
  </code></pre>
  
  <p><code>{entry}</code> returns empty. Any thoughts why this isn’t being pulled into this particular page/template? I can access it just fine from within the </p>
  
  <p>The section, template and URL structure is as follows:</p>
  
  <pre><code>Section landing page
  url: /products-and-markets
  template: /products-and-markets/index
  section: productsAndMarketsLandingPage
  
  Category landing page
  url: /products-and-markets/{slug}
  template: /products-and-markets/_category
  section: productsAndMarkets
  
  Product entry page
  url: /products-and-markets/{slug}
  template: /products-and-markets/_entry
  section: productsAndMarkets
  </code></pre>
  
  <p>Cheers in advance,</p>
  
  <p>Cole</p>
  
Tags: <templating><entries><categories><url>
Title: Issue accessing single entry from within category template
ThreadText: # Issue accessing single entry from within category template
  
  (Asked by: username_0 on 2015-09-24)
  
  I've got a product section on a website where individual product entries are categorised. On the section landing page all the products are listed organised by category. On the individual category pages only the product entries relevant to that category are shown.
  
  The issue I’m having is that for the category landing page I want to pull in the Section landing page content. However when I try the following:
  
  ```
  {% set entry = craft.entries.section(‘productsAndMarketsLandingPage’).first() %}
  
  ```
  
  `{entry}` returns empty. Any thoughts why this isn’t being pulled into this particular page/template? I can access it just fine from within the
  
  The section, template and URL structure is as follows:
  
  ```
  Section landing page
  url: /products-and-markets
  template: /products-and-markets/index
  section: productsAndMarketsLandingPage
  
  Category landing page
  url: /products-and-markets/{slug}
  template: /products-and-markets/_category
  section: productsAndMarkets
  
  Product entry page
  url: /products-and-markets/{slug}
  template: /products-and-markets/_entry
  section: productsAndMarkets
  
  ```
  
  Cheers in advance,
  
  username_0
  
  **Tags:** templating, entries, categories, url
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2015-09-24. Score: 1 | Accepted answer
  
  Okay, solved.
  
  Was an idiot and wasn't using the right tag to output the results of the query.
  
  Sorry and thanks!
  
  > **Comments:**
  > **username_1**: Glad you got it sorted out, username_0! Can you choose this as the answer so the question will be closed?  
  > **username_2**: Can you post the tag you used to get things working for folks finding this post in the future?  
  
  ---
  
  ### Answer by username_3 on 2015-09-24. Score: 0
  
  How about
  
  `{% set entry = craft.entries.sectionId(productsAndMarketsLandingPage.id).first() %}`
  
  > **Comments:**
  > **username_0**: Sadly still returning empty. We are using locales on the site (with English defaulting to root) - not sure if that is what is causing the problems  
  
  ---
  
  