Is there a simple way of linking [Events] to [Posts] ?

Home Forums Calendar Products Events Calendar PRO Is there a simple way of linking [Events] to [Posts] ?

Viewing 15 posts - 1 through 15 (of 35 total)
  • Author
    Posts
  • #120317
    driftwood
    Participant

    I read a discussion that took place over on WordPress forums a year ago that you recommended using Advanced Custom Fields to create a relationship link within a custom field that will appear in Events edit.
    Did this and pointed the event to the linked Post but nothing happens when you click off the calendar’s month view at an event on a certain date. i.e. it should now point to the linked Post.
    Posts have a published DATE and published TIME (This is a natural timeline for WordPress), they also have a TITLE.
    Events are CUSTOM posts but they too have published Title, date and time fields. However, TEC Events on the whole use their own styling and not the themes because most themes are setup to show posts – naturally. Therefore, as I have a ton of dated posts already in my WP database, why can’t I point it to the posts instead of Events IF it exists? If it doesn’t exist then point to Events (where I can fill in basic details until I publish a matching POST! This would save me re-entering all my posts into events and without the beautiful design of my theme.

    I had already done a 100 posts of unique editorial.

    Therefore, the question is, what EXACTLY do I have to change for Month and List views (php’s?) to correctly point to my matched POST of the same name/date and time? And where to add those changes.

    (Here is the original question with very basic answers from Jonah: http://wordpress.org/support/topic/plugin-the-events-calendar-linking-events-to-blog-posts)

    __________________ ANSWER _________________
    UPDATE 24th march 2014: Just use a redirector plugin that supports custom posts like TCE Pro events and link them to their distinctive wp posts urls of your theme.
    The redirect plugin that works great with TCE Pro is Quick Page/Post Redirect Plugin.
    Fabulous!

    #120793
    Brook
    Participant

    Howdy driftwood,

    I’d love to help. It sounds like what you want to do is rather simple and straightforward. In our various list views (month/calendar, widgets, etc.) instead of linking to the single-event page you want to link directly to a blog post about the event, correct? It sounds like you are now storing this blog post in a custom field.

    So this would actually be quite easy. Using a WP Filter you would hook into the filter ‘tribe_event_link’ and return the value of your custom field.

    The support we provide here is guidance, not exact code for your specific site. While we would absolutely love to be writing custom code for each of our users and doing everything we can for them, we would have to charge a lot more the plugin to be able to afford that. So we have found specific guidance like the above to be a perfect compromise in terms of cost vs. benefit to you.

    Does that advice make sense? Will that work for you? Please let me know. Cheers!

    – Brook

    #121230
    driftwood
    Participant

    Surely someone has done this in the past – linking to a blog post rather than the event – I thought it would be one of the first thing’s Modern Tribe would have covered!
    BTW: I’m a little unsure as to what Ive got to do in WP Filter as Im not a coder. Any hints to what ‘hooking’ in means and where does it hook?

    #121267
    Brook
    Participant

    As crazy as it might sound you are the first on I have seen want this behavior, driftwood. I once saw a user who wanted the link to go directly the event website instead of the single events page, but that’s the closest I have seen. This is definitely a unique customization that you are wanting.

    Here is a pretty good guide on hooks & filters. But, it still geared towards people who know PHP and are comfortable writing code. If that does not describe you, and do not know someone whom you can hire, there are still options. We have a list of freelancers who are quite capable of making changes on your behalf. You can obtain this list by emailing [email protected] and requesting it.

    I hope that all makes sense. I definitely want to support you as much as I can. Unfortunately we would have to charge a lot more for our plugin if it included a years worth of customizations/modifications in the price. As we outline in our scope of support on various areas on this site, the support includes assistance with bug fixes and guidance on how to perform modifications. However, it is up to you to actually make the modifications yourself.

    Please let me know if you have more questions. I really do want to help you as much as I can. When you have no more question on the topic, let me know and I will mark this topic answered. Thanks!

    – Brook

    #121297
    driftwood
    Participant

    I’m flabbergasted that not a single user has ever got this working/or thought of providing the solution. Think about it. There’s a myriad of themes out there which work well with The Event Calendar but which can’t or don’t work on Event Pages.
    I’m going to sit down and try work this out stage by stage and do it for myself.
    Thank you for your efforts. Perhaps in future you guys should seriously think about common solutions for the common people.

    #121301
    driftwood
    Participant

    Posts are date published – i.e. its a timeline. A calendar should be able to link to these pages as the master timeline to them. I can’t see why this isn’t appealing to users.

    As a commercial proposition or ‘idea’ this actually should be given more thought. Think how many more sales Modern tribe would generate if you could simply link the Calendar to Posts or Pages. Absolutely beautiful and elegant idea and would empower ALL themes.

    #121303
    driftwood
    Participant

    or events!

    #121305
    Brook
    Participant

     

    We certainly do our best to think about common solutions for all. That’s basically our entire goal here. If there is a common problem, or even just a feature that you would like to suggest, please suggest it on our user voice page so that other users can voice their support. A lot of the feature suggestions their get hundreds of votes! So when you find a common problem no doubt it will get plenty of recognition there and thus we will appropriately prioritize its implementation.

    Thanks for the feedback. If this question is answered to your satisfaction, please mark it answered if you do not mind. Have an awesome day!

    – Brook

    #121307
    driftwood
    Participant

    In other words… thanks for buying the product now off you go…run along! Oh and here’s a link to our basic templates/theme FAQ with limited support for non-developers and one that hasn’t been updated for probably quite some time.
    Roll on the next customer… That’s clever. Short term win the battle, long term lose the war.
    It makes me laugh that I have to take over 100 dated show Posts for my festival and copy them over to your Events custom posts – which does not make use of the feature enrichments of my preferred theme. And yet the only themes out there with 100% support are very few and far between. Wake up – smell the coffee. You can’t go on believing that its always the themes fault as to why things don’t work correctly with TEC. What you’re actually saying (just look at the hundreds of posts) is that TEC /Pro is simply not compatible with WordPress and can’t do much without serious programming work.

    #121311
    driftwood
    Participant

    OMG, just looking at the ‘developing an api plugin’ in your WP Filter link makes me want to cry. Where in hell does one start? If there’s anyone out there willing to help please pm / email me here. Apparently its simple to do;-

    Ill try to write my query like a coder:-

    IF clicked on calendar entry THEN
    IF (datetime.event AND name.event) = (datetime.post AND name.post) THEN
    DISPLAY post
    Else
    DISPLAY event
    End IF
    End IF

    Now how do I code this into TEC Pro?

    #121315
    driftwood
    Participant

    Or if the code above is useless I can build a custom field in events that is tied to the post (Post (Custom field ‘Post Type’ Events = posts, I select the tie from the list array of posts where its a match)
    How do I now display the result?

    #121323
    driftwood
    Participant

    Here’s my created relationship field ‘tribe_event_link’ in custom fields – se jpg;-
    http://www.brightonspiegeltent.com/wp-content/uploads/2014/03/custom_field_create_relationship.jpg

    You can see Ive built a relationship in the following linked image between an TEC event and WP post:-

    http://www.brightonspiegeltent.com/wp-content/uploads/2014/03/Event-Editor-tribe_event_link-to-post.jpg

    Now I just need to do something to display the post (and not event) when its picked from event calendar – some kind of hook or filter? Please help.

    #121325
    driftwood
    Participant

    If I am to try and build a hook where will I insert this hook? Which event_tribe php file will it have to go in?

    #121327
    driftwood
    Participant
    #121330
    Brook
    Participant

    Now I just need to do something to display the post (and not event) when its picked from event calendar – some kind of hook or filter?

    You would want to query the WP database for the post that you have specified in your custom field, then return that URL using the ‘tribe_event_link’ filter. Even easier, if you have specified the full URL of the post that you would like the event to link to within your custom field, then you would simply return the value of that field (the full URL) using the ‘tribe_event_link’ filter.

    If I am to try and build a hook where will I insert this hook? Which event_tribe php file will it have to go in?

    You can actually add this hook and your PHP function within you theme’s functions.php file. That would be the easiest way.

    It sounds to me like one of your biggest issues is that the events template is different than the page template. Did you know that you can change the events template to one of the theme’s other templates? If you go to WP Admin > Events > Settings, click on the Display tab, and scroll down to “Events template”, you can select which page template from your current theme that the Events calendar uses. Have you already seen this and tried it out? I realize that this does not duplicate your post content from the blog post to the event, but depending on how your theme is designed it will allow you to select the look of the single events page. I just wanted to throw that suggestion your way in case it helps you any.

    Cheers!

    – Brook

Viewing 15 posts - 1 through 15 (of 35 total)
  • The topic ‘Is there a simple way of linking [Events] to [Posts] ?’ is closed to new replies.