Home › Forums › Calendar Products › Events Calendar PRO › Related posts not showing
- This topic has 9 replies, 2 voices, and was last updated 11 years, 9 months ago by
Casey.
-
AuthorPosts
-
July 9, 2014 at 6:04 am #321206
alexwg85
ParticipantHello, I have tried many different combinations to have the related events appear on my single event page but have had no luck. Currently I have got ‘ tribe_get_related_posts(); ‘ implemented on this page: http://www.quayarts.org.gridhosted.co.uk/where/event/stuart-mccallum-trio/2014-06-07/
I have tried it with different variables and variations with no luck. Any help would be appreciated.
July 9, 2014 at 12:14 pm #323460Casey
Participantalexwg85,
Thanks for getting in touch! Can you verify that you don’t have the ‘Hide Related Events’ option checked in your settings (screenshot)? Just let me know, and I can troubleshoot further if needed.Thanks! 🙂
-Casey-
July 10, 2014 at 1:04 am #331362alexwg85
ParticipantNo I don’t have that checked.
July 10, 2014 at 7:17 am #334870Casey
Participantalexwg85,
If you look at ‘plugins/events-calendar-pro/views/pro/related-events.php,’ you’ll see the code that controls the display of related events. You should be able to perform a template override of that file if you wish to customize things further.You’re probably not seeing any related events displaying, because there were none found. Our plugin only displays related events if there are any found, so sometimes this area will be empty. This thread should help to clarify what determines related events.
Hopefully that points you in the right direction, but let me know if you have further questions here. Thanks! 🙂
-Casey-
July 10, 2014 at 7:21 am #334902alexwg85
ParticipantThere should be related events. I have recurring events and events in the same category. I have looked at that code and there is nothing there I need to change yet – I just want the events to show.
Is there something wrong with the way I have coded it in at all?
July 10, 2014 at 7:29 am #334958Casey
Participantalexwg85,
As we can’t provide support for customizations, I couldn’t speak to exactly what you’ve changed. However, in order to determine if the issue lies with your code or if no related events are found, you might try switching over to the default 2013 theme to see if related events display after that. If related events display after switching themes, then you can confirm that one of the customizations you made is causing a conflict. If no related events display, then you can confirm that no related events were found.That should at least help you investigate the issue further and find the culprit. Thanks! 🙂
-Casey-
July 11, 2014 at 2:05 am #344948alexwg85
ParticipantThis reply is private.
July 11, 2014 at 7:56 am #348418Casey
Participantalexwg85,
I’m going to go ahead and show your private reply here for transparency and context for other users that might come along after you. We typically only use private replies for sensitive information like user credentials, etc.I have set this to a private reply so nobody else need see it, but your support here has not been great. You have just given me stock responses which I have already checked and double checked myself. I am pretty sure you have not taken a single peek at my code to find the problem. Part of paying for pro is so that you also get support, but the answers you have given me are no better than the ones I found looking through your documentation and what other people have said in the forums.
I’m definitely sorry that our support isn’t living up to your expectations, but I’m trying to determine the root cause of the issue here. Testing things with the default theme gives us a baseline for support (read more about this here), and help us to determine whether or not a particular issue has been introduced due to a user’s custom code, or if there’s another issue at play.
With that being said, were you able to see if the issue persists using the default 2013 theme?
July 14, 2014 at 1:43 am #375873alexwg85
ParticipantFor anybody else encountering a similar problem. I needed to wrap tribe_get_related_posts(); in do_action( ‘tribe_events_single_event_before_the_meta’ ) and do_action( ‘tribe_events_single_event_after_the_meta’ )
The related events are now showing.
July 14, 2014 at 8:20 am #379907Casey
Participantalexwg85,
Excellent! So glad that you were able to resolve the issue here. 😀 Since it looks like you’re all set here, I’ll go ahead and mark this thread as answered and close it out, but always feel free to start a new thread if you have further questions.Thanks again!
Cheers,
Casey -
AuthorPosts
- The topic ‘Related posts not showing’ is closed to new replies.
