Skip Navigation

[Resolved] I need to display one category

This support ticket is created 6 years, 8 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
- 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 7:00 – 14:00 -
- 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 15:00 – 16:00 -

Supporter timezone: Europe/London (GMT+00:00)

This topic contains 1 reply, has 2 voices.

Last updated by Nigel 6 years, 8 months ago.

Assisted by: Nigel.

Author
Posts
#907229
Screen Shot 2018-06-01 at 01.49.33.png
Screen Shot 2018-06-01 at 01.44.16.png

Tell us what you are trying to do?

I have projects with categories i.e technology, number of units etc.
On each projects I have an info panel including details like 'technology:'
I want to display all technology connected to this property but using

  • Property Type<span> [wpv-post-taxonomy type="category"] </span>
  • shows all the categories - how do i just show 'technology'?

    Is there any documentation that you are following?
    [wpv-post-taxonomy type="category"]

    Is there a similar example that we can see?

    What is the link to your site? hidden link

    #907359

    Nigel
    Supporter

    Languages: English (English ) Spanish (Español )

    Timezone: Europe/London (GMT+00:00)

    Hi Ryan

    The wpv-post-taxonomy shortcode will list all the categories assigned to the current post.

    From your screenshot it looks like you are using hierarchical categories, something like this

    - Technology
    -- Audio Visual
    -- Lighting Control
    
    - Number of units
    -- One
    -- Two
    -- Three
    
    - Something else
    -- This
    -- That
    

    If you want to display somewhere on a post that it has the technology categories Audio-Visual and Lighting Control assigned, and not show other categories such as "Two" from Number of units, then what you need to do is break out the separate "types of categories" into their own custom taxonomy.

    So you should make a custom taxonomy for Technology and then add the terms for Audio-Visual, Lighting Control etc, and another custom taxonomy for Number of units, and as many taxonomies as you have "kinds of category".

    Then when you use the wpv-post-taxonomy shortcode you can specify the taxonomy the terms should come from.