Support has been upgraded!
The Support Forum is closed. Not to worry! Providing the top quality support you expect and we're known for will continue! We're not ending support, just changing where you submit requests. This will provide you with the best experience possible.
Premium Support
Have you purchased an addon for Connections such as one of our premium templates or extensions with a valid license and you need help?
Please open a Support Ticket in your user account.
Free Support
Are you using the free Connections plugin? Don't worry, you are still very important to us! We are still providing you with the same high quality support that we're known for.
Please open a new support topic in the WordPress support forums for Connections.
Tagged: 8.13, getCategoryBlock(), slim plus, template
- This topic has 3 replies, 2 voices, and was last updated 5 years, 8 months ago by
Steven Zahm.
-
AuthorPosts
-
03/22/2018 at 9:12 am #456361
Jürgen Joost
ParticipantHey, would like to display business’s categories in the listing. At the present I display:
Contact person: Name Name
phone: 12345678
email: email@email.com
web: http://www.website.com
categories: this feature I need asapIs it possible?
03/22/2018 at 9:29 am #456364Steven Zahm
Keymaster@ Jürgen Joost
I’m assuming this is in regards to the Slim Plus template, correct?
It is possible, but you would have to edit the template in order to show the categories assigned to the entry.
You can add the categories to the
card.php
file by adding this where you want them to be displayed:$entry->getCategoryBlock( array( 'separator' => ', ', 'before' => '<span>', 'after' => '</span>' ) );
The
card.php
file can be found in this folder:../wp-content/plugins/connections-slim-plus/
I recommend following the method in this QuickTip so you can add it in an update safe way.
Hope that helps!
03/22/2018 at 9:49 am #456365Jürgen Joost
ParticipantThanks, it is displaying now! Is it possible somehow to hide category block from other languages via shortcode options. The big issue is that I can’t translate category names and I can’t display foreign category names under other language. If you know what I mean?
03/22/2018 at 3:22 pm #456409Steven Zahm
Keymaster@ Jürgen Joost
If the language is determined by a query variable, then you could display the categories based on the query variable and its value.
-
AuthorPosts
You must be logged in to reply to this topic.