WordPress.org

Ready to get started?Download WordPress

Forums

The Events Calendar
[resolved] Linking Events to Blog Posts (14 posts)

  1. artifaktCom
    Member
    Posted 1 year ago #

    Hi there,

    Im building a site for a tour company; so I am using the blog post functionality of WordPress to hold the actual tour info, but I want to use the Events calendar to show when the tours are happening in a calendar view. I know I'll need to enter both seperately (blog post/tour and an event entry), but I'd like to have the tours link to the blog post when clicked rather than linking to the event details as I'll need to add the information twice that way. Is there any way to define where the event will link to when clicked so I can link it to a blog post?

    Thanks!

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

  2. wp-user-487
    Member
    Posted 1 year ago #

    Hi there, did you have any luck with this? I'm looking for a similar feature.

  3. artifaktCom
    Member
    Posted 1 year ago #

    Not yet. I just posted it this morning.

  4. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 1 year ago #

    Hey guys. Thanks for the notes here, and for pointing out the end goal so clearly. Shouldn't you be able to have any fields they need for the tour in the event itself, without need to click to a regular post? Otherwise, I checked with the team on this and they had a couple of different suggestions. One method would be to just use this plugin (http://wordpress.org/extend/plugins/posts-to-posts/), which sounds like it could take care of your issue fairly seamlessly. If not, what about using Advanced Custom Fields (http://wordpress.org/extend/plugins/advanced-custom-fields/) with a hook into the_permalink?

  5. artifaktCom
    Member
    Posted 1 year ago #

    Thanks Rob. That plugin looks like it will do the trick.

    The reason I cant have the events contain all the details is that the event itself is really complicated and requries and image gallery, tons of text, and a web form.

  6. wp-user-487
    Member
    Posted 1 year ago #

    Dear roblagatta, my situation is pretty similar to the similar poster. I'm just wondering if you could explain how those two plugins would be used to meet that need.

    The only thing I would add is that I need to have upcoming events switch to be past events.

    Kind regards

  7. artifaktCom
    Member
    Posted 1 year ago #

    Hi Rob,

    I could actually use a big of hand-holding here too to get this running correctly with the Post-to-Post plugin.

    Thanks!

  8. artifaktCom
    Member
    Posted 1 year ago #

    Hi Rob,

    Any update here? I've looked at both of the plugins, but cant figure out how to make them work. In terms of using the Advanced Custom Fields plugin and then hooking to the permalink, what would be the steps? Create the custom field (not sure what call it or what the specifics need to be) and then just entering the permalink for the post I want it to link to?

    Thanks!

  9. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 1 year ago #

    Hey guys. Thanks for the follow-up here; while I generally cannot guarantee that we'll be able to troubleshoot those other plugins themselves (you may want to reach out to their devs on that end), I can certainly get my colleagues who suggested these links to chime in.

    Just to set expectations...we generally only hit this forum 1x a week, given our limited support bandwidth. If you need more frequent updates than that you'll probably want to update to PRO. But since I'm doing the pass this week and am not sure how to guide you on this, I've asked Jonah to chime in to try and point you in the right direction come Monday. Artifakt, should I assume you're taking the ACF route and ditching Posts-To-Posts?

  10. artifaktCom
    Member
    Posted 1 year ago #

    Hey Rob,

    Im not set on that plugin at all. Basically whatever will work is what I will use.

  11. jonahcoyote
    Member
    Posted 1 year ago #

    Hey artifaktCom,

    ACF is probably the easiest solution out of the two. What you'll want to do is setup a Post Object field and have it pull from your blog posts and assign the field group to the Events post type (so it only shows up when editing events). Then, when you edit your events, you'll have that show up as a custom field where you can select which post you want to "relate" to the event.

    Then, you'll need to change anywhere where your events are normally linked from (table.php for the calendar, list.php for the list and anywhere else like widgets) and conditionally check first to see if that post object field is populated for an event, and if it is, use the link for the post object instead of the event link.

    The code and setup for this is not super hard but unfortunately it's way more than we can help you with but hopefully this is enough to work off of.

    Cheers,
    Jonah

  12. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 1 year ago #

    This help get you where you want to be, artifaktcom? Do you need anything else from us here or can we go ahead and close out this thread?

  13. artifaktCom
    Member
    Posted 1 year ago #

    Cool.
    Thanks for all your help here guys!

    Yes Rob. Feel free to close the thread.

  14. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 1 year ago #

    Awesome! Glad to be of service, and thanks for confirming as much. Going to close this one out...but as usual if you need anything else down the road, just give us a shout. Cheers.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.