help center

Search
Close this search box.
On this page

Create a category page using the Loop Grid or Loop Carousel

Last Update: June 17, 2024

Taxonomy Queries allow you to create loops based on post or product categories or tags. For example, if you run a food blog you can create a Loop Grid or Loop Carousel displaying the categories of articles – Appetizers, Soups, Desserts etc..

Create a category page

The example below shows a Taxonomy query for posts in a Loop Grid but the same principles apply to products and to the loop Carousel.

For details about creating a Loop Grid, see Build a Loop Grid.

To create a taxonomy query:

  1. Drag the Loop Grid to canvas. For details, see Add elements to a page.

    A Loop Grid appears on the canvas.
  2. In the panel, go to the Choose template type dropdown and select Post Taxonomy.

    If Woocommerce is installed, a ‘Product Taxonomy’ option will also appear.
  3. Click Create a template.
    When we build the template, we’ll use dynamic information. For example, instead of typing in the category names, we’ll use the dynamic tag ‘Archive Title’. This will automatically retrieve the category names without having to manually enter them. For more information, see Dynamic tags.
    Important
    Taxonomy loops for Posts can use the following dynamic tags:
    • Archive Title
    • Archive Description
    • Archive URL
    • You can also add images for your categories using ACF taxonomy images. See Add an image to post categories for more details. 

  4. In the popup window, click Save.
  5. Drag a Heading widget to the template you just created.
  6. In the panel, click the dynamic icon GbwzVBbV0pQ9StDf0pBO c4gHp32uljt1Z4L0GczkKNa4urwGAQ ag39aCr0piBFC7TGwS9luiTSiHGvJWXp1b DYn2NWHawPrS8hDPb7UeTvE2iriHuElfeCaiqmtbbSoldkG9X7cnzPmqPeLetQ Create a category page using the Loop Grid or Loop Carousel 229 next to Title
  7. Select Archive Title from the dropdown.
    Note
    In WordPress, Post and Product taxonomies are considered a type of archive.


    Usually you don’t want the word Category to appear in the loop, so we’ll remove that.
  8. In the panel, in the Title field, click the wrench icon qWWYqCMcbitQk5hsc Create a category page using the Loop Grid or Loop Carousel 237 to access Settings.
  9. In the window, toggle Include Context to No.
    Now we’ll add the category description.
  10. Add a Text Editor widget to the template and using the dynamic tag, select Archive Description.
  11. Click Save & Back to save the template.

You’ll see how visitors will view the page.

You can style the page using the controls found in the Loop Grid or Loop Carousel. For details, see Loop Grid widget and Loop Carousel

Make the categories clickable

Now that you’ve created a category page you need to make it useful. In general, users expect to click on a category and be taken to a category page. 

There are two ways to make the items clickable:

  • You can make one of the elements clickable. For example, making the heading clickable so visitors can click the heading and go to the category page.
  • You can make the container clickable so visitors can click anywhere in the container and go to the category page. 
Warning
You have to choose one of these methods. Putting a clickable element inside a clickable container can break the page.

In this example, we’ll make the container clickable.

To make a category clickable:

  1. While editing the template, select the container by clicking the icon in the upper left corner.

    Container settings will appear in the panel.
  2. In the panel, open the Additional Options section.
  3. From the HTML Tag dropdown menu, select a (link).
  4. In the Link field, click the dynamic tag WVVvPi1hswivu9Hlie3V zcHlrwiY JSn22H5MRV sBr0ABKk7Bhc9rfNDMAe1OwKeN0x8F0JUf4IIo xPRLYfNEsqYX 5zXfr5xyg2dDV egP6TwXYCU9GLcjvkaQnJqJGtN4N0Vx5 Create a category page using the Loop Grid or Loop Carousel 255 icon.
  5. Select Archive URL from the list.

When visitors click on the container, they will go to the category page.

If you want to make one element, such as a Heading or Text Editor widget, clickable:

  1. In the widget’s Content tab, go to the Link field.
  2. Click the dynamic tag icon 9NWVhxBiXW8nekN5hLr77tT7epGjhPmPuml49qHN1aj4 qt9wdAoONRt1CKp3vzD6v0GkDSZWOzdCNHcSyFIXD0Z4cjmOnuULViIUBLmQR2ShXSlWc5WwmXo45NLEKEVA5sGTfpDw7U Pazyx2 Gmw Create a category page using the Loop Grid or Loop Carousel 261 and select Archive URL

Removing the category – Uncategorized 

Uncategorized is a default category that is always present for WordPress posts and products. You probably don’t want it to appear on your category page.

To hide the Uncategorized category:

  1. Select the Loop Grid or Carousel widget.
  2. Open the Query section.
  3. In the Filter By dropdown menu select Manual Selection.
  4. In the panel, click Exclude.
  5. In the Search & Select text box, enter Uncategorized

The Uncategorized category will not appear in the loop.

Note
The Taxonomy query is compatible with most commonly used ACF fields and custom post types.

Add an image to post categories

You can add images to product categories using WooCommerce and then add those Featured Images to your template. However, for posts you’ll need to use the third-party ACF plugin to add images to your category. For more information about how to attach images to categories, consult the ACF documentation.

Once these images are attached to your categories, you can add them to your loop.

In the following example, the category images are in a field labeled Featured image.  

To add images to the template:

  1. Add an Image widget.
    Note
    These steps apply to any widget that uses images.

  2. In the panel, in the Content tab, click the dynamic tag icon N7JdQmxmosGePsslEiLVIkDgiNg 2U9iStnLdBrXtl2p WSmalAob QMCTWEHv07oAFtywjjLnJAzCUiQ3f6cwMx1SoJ1q3UtflgTQX5RiP3 GWXe5zmpcew7 gu5DdCOeeeuT98oqJRYwFX3Aa Cw Create a category page using the Loop Grid or Loop Carousel 275.
  3. From the dropdown menu, select ACF Image Field.
  4. In the dynamic field, click the key icon.
  5. In the Key dropdown, select the field you selected for category images.

The template will now display the category images.

Have more questions? We’re more than happy to assist.

Link is copied to clipboard!
On this page

Is this article helpful?

Share this article