Layout Builder - Portfolio Items

Trying to create button using layout builder for a single portfolio item, I want that button to display the tag for the item. When I use {{dc:term:title}} nothing shows up. Seems to work for blog posts but not portfolio items.

Similarly not getting categories to display of the portfolio items when using dynamic content.

Site: mrboxinc.com

Hi @srundle,

Sorry for not following up on this sooner. To access a post term, you’ll need to setup a new Looper Provider first. Because a post can have multiple terms, we need to iterate over them.

  • Enable Looper Provider on a Layout Element (Divs are handy of you don’t want to)
  • Set the type to “Current Post Terms”
  • Select a taxonomy you want to use
  • Enable Looper Consumer on the same element, or a child Layout Element
  • If you want to ensure only one title is ever output (in case the portfolio item accidentally gets more terms added) set the Consumer count to “One”
  • Place your Dynamic Content somewhere inside that consumer

This should let you access the term data inside your post.

Perfect, thank you, this solved my problem. I can now display portfolio categories and tags.

Thanks for confirming! Glad to hear it’s working for you using that method. I’ve updated this topic for posterity to remove our issue tracker notes and make it a bit more helpful for anyone running into the same issue.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.

Hi, I’m trying sort of the same thing. I want to add a section on a page that shows all of my portfolio items with all of the different categories listed as buttons/text links. However, I don’t see the Portfolio post type listed under the Loopers Provider; how do I place the portfolio on its own section beneath a headline and/or body copy?

Hello David,

Please use the Query Builder in your Looper Provider.

If you have any additional questions at this time we kindly ask that you open them up in a separate thread. The longer threads get in the forum, they become more difficult to support as they tend to drift off-topic and they also make it troublesome for users trying to search for solutions. Keeping threads relevant to their original inquiry ensures that we can keep better track of what has been resolved and that users can more effectively find answers to similar issues they might be experiencing.

Thank you.