Skip Navigation

[Resolved] Showing category description in a view

This support ticket is created 6 years, 4 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
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: Asia/Karachi (GMT+05:00)

Tagged: 

This topic contains 1 reply, has 2 voices.

Last updated by Waqar 6 years, 4 months ago.

Assisted by: Waqar.

Author
Posts
#1128121

I have two custom taxonomies, "Design" and "Format" and I want to show an overview of all Format-Categories of a selected Design with the category description and Name.
For example: if "Design (A)" ist selected I want to show a List with "Category Name and Description of Format (a)" with some Product-Pictures, "Category Name and Description of Format (b)" with some Product-Pictures...

Creating the views for showing the Products ("Design (A) & Format (x)") is no problem, but I have no Idea how to show the Category-Description of Format (x). I also tried nested views...

Is there a way to solve this problem?

#1128258

Hi there,

Thank you for contacting us and I'll be happy to assist.

It is important to note that "Custom Search Settings" cannot be applied to "Taxonomy" views, which means that front-end filtering won't work, with them.

If you're planning to use multi-level filtering/segmentation for your products, I'll recommend replacing these two custom taxonomies ( "Design" & "Format" ) with two new custom post types of the same name.

These custom post types can then be linked through a one-to-many relationship i.e. each design can be linked to multiple formats.
( ref: https://toolset.com/documentation/post-relationships/ )

In this case, taxonomy description can be replaced by a regular "Multiple lines" or "WYSIWYG" custom field attached to these new custom post types.

This arrangement will give you more control as you'll be able to create nested post views (not taxonomy views) and apply search filtering, based on the parent-child relationship.
( ref: https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/displaying-related-child-posts/ )

If for some reason, you'd like to continue using the taxonomies for this segmentation, another alternative is to save the title and the description of each attached taxonomy to a shadow custom field value with products, automatically.
( ref: https://toolset.com/documentation/customizing-sites-using-php/updating-types-fields-using-php/ )

Those custom field values can then be used for front-end searching/filtering, in place of actual taxonomy terms.

The custom programming involved in this approach is beyond the scope of our support, but as needed, you can consider contacting one of our certified consultants from this link:
https://toolset.com/contractors/

I hope this helps! Please let me know if you need any further assistance.

regards,
Waqar