How to put different urls on "View all Events" link – Events list widget

Home Forums Calendar Products Events Calendar PRO How to put different urls on "View all Events" link – Events list widget

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #930128
    amara84
    Participant

    Hello 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=19

    Is 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!

    #930176
    Brian
    Member

    Hi,

    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

    #930479
    amara84
    Participant

    Hi 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

    #930504
    amara84
    Participant

    Hi 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!

    #930535
    Brian
    Member

    I 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!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘How to put different urls on "View all Events" link – Events list widget’ is closed to new replies.