Home › Forums › Calendar Products › Events Calendar PRO › Adding Category to widget + event offset
- This topic has 4 replies, 4 voices, and was last updated 10 years, 1 month ago by
Support Droid.
-
AuthorPosts
-
February 2, 2016 at 9:42 am #1066497
haaid
ParticipantHi, I am interested to know if there is a possibility to do the following
a) add the category to the display in the list-widget
b) offset the widgets in a list (i.e. start from the third or fourth listed event); this way you could for example highlight the first upcoming one in one block and have the following events underneath that block.thanks.
K.
February 3, 2016 at 8:25 am #1067066Brian
MemberHi,
Thanks for using our plugins. I can help out here.
The Event List Widget and Shortcode does have the ability choose a category to display.
https://theeventscalendar.com/knowledgebase/configuring-the-list-widget/
You can find more articles about our widgets using this link.
We do not have a feature to do an offset as you like. It might be possible with a customization, but that is beyond the support we can provide.
Let me know if you have any follow up questions.
Thanks
February 10, 2016 at 11:22 am #1070990Tim Griffin
ParticipantBrian,
Thanks for the reply here – there is a question that remains – even after visiting all the posts tagged with “widget”. Let me see if I can articulate 😉
What is the simplest way to display the category next to each event in the widget list?
Here’s my current fix:<p>Category: <?php $categories = get_the_terms( $post->ID, 'tribe_events_cat' ); if ( ! empty( $categories ) ) { echo '<a href="' . esc_url( get_category_link( $categories[0]->term_id ) ) . '">' . esc_html( $categories[0]->name ) . '</a>'; }; ?></p>I added this to the single-event.php file. ( * [your-theme]/tribe-events/pro/widgets/modules/single-event.php) Would like to have the option to display the category dropdown for a selected group of events. Is that something already posted but I missed?
So – the part about offsetting – that seems it would be simple… do you have a suggestion?
Thanks!
Tim
February 10, 2016 at 3:50 pm #1071104Brian
MemberHi Tim,
Thanks for using our plugins. I can help out here.
First it is usually a good idea to create your own topic so we can help you one one one.
Anyway, I am not sure what you are asking about. That coding looks like it would work, does it work for you?
What about this, can you explain about this more: “option to display the category dropdown for a selected group of events”
Also, not sure if the offsetting is simple to do it is not something I have a suggestion on we are limited on helping out on customizations.
Generally we can help tweak existing features, but not able to provide much with adding new features.
Let me know and I will try to help out.
Thanks
February 25, 2016 at 8:35 am #1082016Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Adding Category to widget + event offset’ is closed to new replies.
