Can you link to custom post types?

Home Forums Welcome! Pre-Sales Questions Can you link to custom post types?

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1563178
    savedaws
    Participant

    I have a custom post type with about a dozen ACF fields and other meta data. I need to add multiple dates and some date ranges to each CPT and then display the in a visual calendar. Looking for any way to solve this.

    The ACF date field does not do date ranges, and may not work with their repeater feature, plus there are not calendar displays out there for ACF that I can find.

    So, would it be possible to create a event, add the dates there, then link it to the CPT, and that way display them in a visual calendar? I saw this https://theeventscalendar.com/extensions/linked-post-type-instructors/ and didn’t know if that could do it.

    If so, could I link directly or redirect to the CPT so when a site visitor clicks on an event in the calendar, it opens the CPT?

    (This is also a continuation of https://theeventscalendar.com/support/forums/topic/calendar-display-of-our-custom-post-types-acf-date-fields/ which was closed)

    #1563812
    Sky
    Keymaster

    Hi again,

    This is something you may be able to do if you are familiar with PHP. The “linked post type” plugin I linked to is just an example of how you might go about do this. It uses an “instructors” post type, but you could modify the code to add whatever post type you have created.

    This would add a field to your event that would let you select a particular post of that type to associate with the event. You would then need to access the data stored in that field within a custom template and use it to pull in the data from the related custom post.

    If you are not a php developer that is familiar with WordPress, this will likely not be an easy task. If you need to hire a developer to create this for you, you might check out this resource: https://theeventscalendar.com/knowledgebase/find-a-customizer/

    Hope that helps!

    Please let me know if you have additional questions about this.

    Thanks,
    Sky

    #1580201
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Can you link to custom post types?’ is closed to new replies.