Skip Navigation

[Resolved] Conditional output in archive

This support ticket is created 7 years 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.

This topic contains 1 reply, has 1 voice.

Last updated by Kacey 7 years ago.

Author
Posts
#586850
Screen Shot 2017-11-06 at 12.29.58 PM.png
Screen Shot 2017-11-06 at 12.26.33 PM.png

I have included some information about the archive being viewed through a view embedded in the archive template. This archive template is applied to categories and a custom taxonomy called Types. I have the view working for Types... see attached image of correct view on front-end and the code I used in the template. However, when it's a category page I'd like it to show the category name and count instead of the Type. I don't understand how to make a conditional output statement read whether it's a archive of a category or a type.

#586891

I am eliminating the need for this fix from the site design.