US English (US)
BS Bosnian

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Book a Demo
  • Product Updates
  • Contact Us
English (US)
US English (US)
BS Bosnian
  • Home
  • Customization
  • Customization Guides
  • Liquid Templating Basics

Looking up & Displaying Specific Category / Article information

How-to guide on displaying/looking up specific categories or articles/questions.

Written by Emil Hajric

Updated at October 11th, 2021, by Denis Omerovic

Contact Us

If you still have questions or prefer to get help directly from an agent, please submit a request.
We’ll get back to you as soon as possible.

Please fill out the contact form below and we will reply as soon as possible.

  • Getting Started
    Users Accessibility New to Helpjuice? Start Here Content Management Multiple Languages/Translations & Localization Multilingual Knowledge Bases Analytics Video Tutorials
  • Customization
    Customization Guides
  • API V2
  • API V3 and Webhooks
  • Article Editor
  • Billing / Subscription
  • Authentication
  • Pricing
  • Swifty AI Chatbot
  • Swifty AI Helpbar
  • What's New
+ More

Usage

Looking up a specific category or article is helpful if you wish to loop through a specific category and it's children (great for tree navigation, etc.) and display it on your knowledge base.


Examples of uses: 

  • Tree navigation - Look up a category, and list all it's children
  • Displaying a specific style for a category or article ID.
  • Displaying articles such as 'latest features' or 'notices' on the index page or main layout as a form of announcements. 


Looking up a specific Article/Question.

In your customization page, on any liquid template (main layout, index, category, question, thanks or contact page), you can write the following: 

{% find_question questionID %} 
<h1> the name of the referenced question is {{ question_questionID.name }} </h1>


 As you can see, you do NOT need to close this as you would close an IF statement or a FOR loop. You just run it as is. You'd replace "questionID" with the ID of the question -- see example below. 


Looking up a specific Article/Question.

In your customization page, on any liquid template (main layout, index, category, question, thanks or contact page), you can write the following: 

{% find_questions 123, 456 %}
     {% for question in found_questions %}
       {{ question.id }}
     {% endfor %}


 As you can see, you do NOT need to close this as you would close an IF statement or a FOR loop. You just run it as is. You'd replace "questionID" with the ID of the question -- see example below. 


Example: Rendering an announcement article

On your Main Layout or Index page, to display the answer of the article/question with the id '1234': 

<h1>Latest Feature Releases: </h1>
{% find_question 1234 %}
<p class='latest-releases'> {{ question_1234.answers.first.body }} </p>
 


Looking up a specific Category/Topic.

In your customization page, on any liquid template (main layout, index, category, question, thanks or contact page), you can write the following: 

{% find_category categoryID %} 
<h1> the name of the referenced category is {{ category_categoryID.name }} </h1>


Syntax is identical as for questions/articles. As you can see, you do NOT need to close this as you would close an IF statement or a FOR loop. You just run it as is. You'd replace "categoryID" with the ID of the category -- see example below. 


Looking up categories by ID

In your customization page, on any liquid template (main layout, index, category, question, thanks or contact page), you can write the following: 

{% find_categories 123, 456 %}
    {% for category in found_categories %}
      {{ category.id }}
    {% endfor %}


Was this article helpful?

Yes
No
Give feedback about this article

Related Articles

  • Shopify/Liquid Global Objects
  • Shopify/Liquid Category Objects
  • Basic Customization Reference
  • Shopify/Liquid Complete Objects Reference

Copyright © 2025 - Helpjuice

Helpjuice, Inc. is a registered US Corporation, EIN # 45-2275731

Download W9
  • Help
  • Features
  • Pricing
  • About
  • Careers
  • Customers
  • Blog
  • Case Studies
  • Resources
  • Knowledge Base Examples
  • Privacy Policy
  • Terms of Service

Why is the knowledge base important?

With a knowledge base, you can allow your customers to self-help themselves, thus reducing your customer support by up to 60%. Furthermore, you can also have your team get instant answers to the questions they need without having to email themselves all using knowledge base software.

What is the purpose of a knowledge base?

The purpose of knowledge base software is to allow you to host your knowledge base/corporate wiki in one centralized 'hub'. Both your customers, and employees can now access information within seconds!

Made with from Miami, Bosnia, Morocco & Brasil

+1 (833) 387 3877 support@helpjuice.com
Expand