[Résolu] When on a CPT use a conditional to find out if the number of terms are 1 OR more
This support ticket is created Il y a 2 années et 9 mois. 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.
No supporters are available to work today on Toolset forum. Feel free to create tickets and we will handle it as soon as we are online. Thank you for your understanding.
I have a CPT - Staff Profiles and each staff member can belong to more than one team (a term in a taxonomy).
Member of: [wpv-post-taxonomy type="team"] displays all the teams as I want. From that though I simply want to add the word teams or team depending on the number.
I've tried various solutions but nothing works, this is where I'm at so far (but not working).
Please note how the original taxonomy shortcode ( [wpv-post-taxonomy type="team"] ) is enclosed in the new shortcode and the "sep", "singular" and "plural" values are passed in the shortcode attributes. You can adjust them for different taxonomies and singular and plural text.
Note: The custom code examples from our forum are shared to get you started in the right direction. You're welcome to adjust them as needed and for more personalized customization assistance, you can consider hiring a professional from our list of recommended contractors: https://toolset.com/contractors/