Home › Forums › Calendar Products › Events Calendar PRO › How to put different urls on "View all Events" link – Events list widget
- This topic has 4 replies, 2 voices, and was last updated 11 years, 4 months ago by
Brian.
-
AuthorPosts
-
January 7, 2015 at 3:25 pm #930128
amara84
ParticipantHello there,
I have purchased the Events Calendar Pro and the The Events Calendar Filter Bar and I’m using the Events list widget.
What I need to do is to add 7 differents widget, each showing events for each day of the week (monday, tuesday etc…).
I have created events category for it and also tags.
While I have no issue displaying the events, the link “View all Events” is redirecting the user to the non filtered result http://localhost/?post_type=tribe_events which isn’t ideal.
i.e : I would like the widget event displaying monday’s event to link to the filtered result with monday tag selected http://localhost/?action=tribe_list&tribe_paged=1&tribe_event_display=list&post_type=tribe_events&tribe_tags%5B%5D=19Is this possible to do? Could you please point me to the correct php or js file to amend and if there is any specific code to implement?
Many thanks for your help!
January 7, 2015 at 4:38 pm #930176Brian
MemberHi,
Thanks for purchasing our plugins.
What you are requesting is beyond the support we can provide, but I can get you started on it and answer some questions.
Please follow our themer’s guide to learn how to move and edit templates in your theme for the Events Calendar:
https://theeventscalendar.com/knowledgebase/themers-guide/
The file you want to look into moving and editing is this one:
events-calendar-pro\views\pro\widgets\list-widget.php
That should get you started.
Let me know if you have any follow up questions.
Thanks
January 8, 2015 at 8:48 am #930479amara84
ParticipantHi Brian,
Many thanks for your response, it was very helpful.
However I am a bit struggling with the tag fuction.
I’ve been reading your section with the different functions and I can’t find anything which can help me do an if statements for my urls.
I tried a few like tribe_meta_event_tags, tribe_tag but it doesn’t work. I was wondering if you could tell me which function I can use to make a condition with the tags.Many thanks
January 8, 2015 at 9:51 am #930504amara84
ParticipantHi Brian,
I actually find the solution.
I have to use template tags.
Here is the code I used if that can help anyone.<?php if (has_tag( array( 'Monday' ) )) :?> write condition here <?php else: ?> write condition here <?php endif; ?>Many thanks for your help!
January 8, 2015 at 11:29 am #930535Brian
MemberI am glad to see you were able to figure it out and thanks for sharing the coding.
I am going to go ahead and close this ticket. If you have a similar issue or another in the future, please do not hesitate to create a new ticket.
Thanks!
-
AuthorPosts
- The topic ‘How to put different urls on "View all Events" link – Events list widget’ is closed to new replies.
