WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. crbarnett
    Member
    Posted 1 year 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:
    http://eden.unreasonabledesign.com/trips/mt-kilimanjaro-mountain-of-god/

    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.

    http://wordpress.org/extend/plugins/the-events-calendar/

  2. bolide
    Member
    Posted 1 year 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. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 1 year 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
    Member
    Posted 1 year 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. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 1 year 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

About this Topic