The Events Calendar
[resolved] Custom link to internal page for each event (calendar and list view) (5 posts)

  1. crbarnett
    Posted 2 years ago #

    URL in question: http://eden.unreasonabledesign.com/events/2013-01/

    I would like the ability to link to a page on my site that is NOT the single event display.

    I am using a "portfolio" custom post type to display all the information about my events (aka trips). These are the types pages I want the events to link to.
    Example trip page:

    Is it possible to link to a custom URL when clicking on an event title in the calendar or list view?

    Thanks in advance for advice, awesome plugin.


  2. bolide
    Posted 2 years ago #

    TEC Events are a custom post type as well... I think your options are to create a template for a TEC single event display that is the same as your existing template, and switch to using it, or a redirect

    If you want to redirect the URL try the Redirection plugin but be aware there are a couple of bugs with it and, depending how you use it, it may not play nice with TEC

    You should be able to define a simple rule to redirect from a TEC calendar listing to your custom post type

    Nick Froome

  3. Rob La Gatta
    Modern Tribe Support
    Plugin Author

    Posted 2 years ago #

    I'm a bit late to this party, but thanks - as always - for the assistance, Nick.

    Crbarnett: that help? Still got any questions here, or can we assume you got this sorted?

  4. crbarnett
    Posted 2 years ago #

    Yes, I have found a work around for this.

    Basically, created a custom field event_url with a custom field plugin.

    Around line 133 of table.php I replaced this code:
    <a>"><?php the_title(); ?></a>

    With the new:
    <a>ID, 'event_url', true); ?>" title="<?php the_title(); ?>"><?php the_title(); ?></a>

  5. Rob La Gatta
    Modern Tribe Support
    Plugin Author

    Posted 2 years ago #

    Ah, fantastic to hear you got this sorted. Thank you for confirming as much, and for providing the fix that worked (it should add value for other users in the same boat down the road).

    Thanks for your support and for using The Events Calendar. If you need anything else down the road just give us a shout. Going to mark this one RESOLVED for now.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • The Events Calendar
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic