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: 0.8.14, cMap, getCategoryBlock()
- This topic has 5 replies, 2 voices, and was last updated 12 years ago by
Steven Zahm.
-
AuthorPosts
-
07/22/2014 at 6:55 am #297740
Leonid Design
GuestHello
y try by the output to show under the phone the category. Is this possible?
thanks
greetings
leonid07/22/2014 at 10:42 am #297757Steven Zahm
Keymaster@ Leonid Design
You can add the categories to the
card.phporcard-single.phpfiles by adding this where you want them to be displayed:$entry->getCategoryBlock( array( 'separator' => ', ', 'before' => '<span>', 'after' => '</span>' ) );I recommend following the method in this QuickTip so you can add it in an update safe way.
Hope that helps!
07/22/2014 at 11:53 am #297764Leonid Design
GuestHello Steven,
thanks, it works perfect! Is it possible only show categories by id?
greetings
Leonid07/22/2014 at 12:08 pm #297767Steven Zahm
Keymaster@ Leonid Design
Great!
re: Is it possible only show categories by id?
How do you mean? The results can be limited by category ID using the category shortcode option. Is that what you mean?07/22/2014 at 1:58 pm #297775Leonid Design
Guest@ Steven
no, i mean in the card-single.php you give me this code: $entry->getCategoryBlock( array( ‘separator’ => ‘, ‘, ‘before’ => ‘<span>’, ‘after’ => ‘</span>’ ) );
here i want to show only one category but in the search all.07/24/2014 at 9:32 am #297872Steven Zahm
Keymaster@ Leonid Design
Ok, I understand now but unfortunately that function will list all categories associated to an entry. There is no option to include/exclude specific categories to be listed. I’ll add this to my feature request tracker.
If I have not asked and if you have a moment, I would truly appreciate a review as they really do make a difference. Many thanks in advance!
http://wordpress.org/support/view/plugin-reviews/connections -
AuthorPosts
You cannot reply to this support topic. Please open your own support topic.
