Current Post’s Terms in Bricks

current-post-terms-grid-bricks

This Pro tutorial provides the steps to set up a grid of terms (like categories) that the current post is assigned to when viewing single posts using a Terms Query Loop in Bricks.

Step 1

Use your favorite custom fields plugin like ACF or Meta Box to create a image-type of custom field for your terms.

Ensure that the ID/name of your field is category_image since the JSON code you are going to paste in the next step references this.

Edit your categories and select/upload a Category Image for each.

Step 2

Edit the template that applies to singular posts of your post type with Bricks.

Copy the Section's JSON from the link below and paste it in your template.

current-post-terms-query-loop

This is a Pro members-only tutorial.

To get full access, login below or sign up for a Pro Account

  • Andre beltrame

    Thanks Sridhar. I made a mistake here.
    your tutorial is about single page. Is exactly this idea. Also. I’ll share your post in the bricks forum. There’s more people
    looking for the same issue.

Leave your comment