Skip Navigation

[Resolved] Display current category name above loop in view

This support ticket is created 3 years, 6 months ago. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Sun Mon Tue Wed Thu Fri Sat
8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 - -
13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 - -

Supporter timezone: America/New_York (GMT-04:00)

This topic contains 2 replies, has 2 voices.

Last updated by Rob 3 years, 6 months ago.

Assisted by: Christian Cox.

Author
Posts
#2113415

Rob

Tell us what you are trying to do?
Display current category name above loop in view.
This should be based on the category that is selected in the filters

Is there any documentation that you are following?
Could not find any documentation regarding this.

Is there a similar example that we can see?
yes, hidden link

What is the link to your site?
hidden link

#2113605

Display current category name above loop in view.
This should be based on the category that is selected in the filters

Hello, unfortunately Toolset does not provide a simple way to display the selected filter term or terms exactly like you have described. In the loop of results, you can display the terms associated with each post, but there is no simple way to display the terms selected in the custom search filters. That would require custom programming, since you need a way to get a term name based on its slug in a URL parameter. There are no built-in shortcodes or blocks that offer this type of display. Another User shared their own fantastic custom shortcode solution for a similar problem here: https://toolset.com/forums/topic/how-can-i-display-the-name-of-a-taxonomy-specified-in-the-url-by-its-slug/#post-393027

You might be able to customize that solution to fit your requirements, but since this isn't related to any Toolset APIs it is custom code that falls outside the scope of support offered here, per our support policy: https://toolset.com/toolset-support-policy/

#2114661

Rob

Thanks for the answer, it is not what I hoped for, but clear. I see that customers have asked this question since 2013, hope this feature will be addd someday 🙂