Find Answers and Get Support › Forums › Sinclair – Political & Donations WordPress Theme › Performance Optimization › the content() hook don’t work witt PODS Auto Template
- This topic has 10 replies, 3 voices, and was last updated 5 months, 3 weeks ago by Manathan.
-
AuthorPosts
-
Yasin ArabaciogluParticipant@efrasiyab
- 1 Topics
- 6 Posts
Hello,
I’m using Pods – Custom Content Types and Fields plugin for events to make some customizations, like event tickets and event line-up etc.. PODS plugin has auto template feature that output custom fields automatically after the_content() hook. I couldn’t achieve to show custom fields with Sinclair theme (other themes i try i have no problem with that)
Could you please help me?
April 2, 2024 at 05:51 #47359@themodactyl- 0 Topics
- 6606 Posts
Hello Yasin,
Thank you for reaching out to us.
Sinclair has not been made compatible with this plugin. Please note that our support policy does not cover custom development, and it seems like your issue might require some custom work to make this plugin compatible. However, I’d be happy to provide you with some resources that might help you find a solution:
The Pods framework has extensive documentation that covers various topics, including hooks and custom development. You can access it here: https://pods.io/docs/
The Pods support forum is a great place to ask for help with Pods-related issues. You can find it here: https://pods.io/support/If you’re not comfortable with custom development, you might consider hiring a developer. Websites like Upwork, Freelancer, and Toptal can connect you with WordPress developers who can help you with your issue.
I hope these resources help you find a solution to your issue. If you have any other questions about Sinclair or its features, please don’t hesitate to ask.
Best regards,
April 2, 2024 at 09:37 #47360Yasin ArabaciogluParticipant@efrasiyab- 1 Topics
- 6 Posts
Hey Manathan, thanks for the quick reply. I will make some investigation on your links.
Just one question? Sinclair has the_content() hook support or not? Or another hook in the event single page?
Best regards,
April 2, 2024 at 13:53 #47361@themoceratops- 1 Topics
- 430 Posts
Hi Yasin,
Sinclair itself doesn’t modify the template for the single event, but our Grimlock for The Events Calendar plugin (which is our compatibility plugin for The Events Calendar) does modify the single event template. However, even our modified template is using
the_content()
. If you are curious, you can find the template ingrimlock-the-events-calendar/templates/v2/src/views/single-event.php
and you can see that we are indeed usingthe_content()
on line 98 of that template.Have you tried this with other post types than events ? I’m wondering if this is a problem with The Events Calendar itself. Another thing you could try would be temporarily disabling Grimlock for The Events Calendar to find out if it’s the culprit that is interfering with Pods.
Hope this helps !
Regards,
April 4, 2024 at 10:19 #47365Yasin ArabaciogluParticipant@efrasiyab- 1 Topics
- 6 Posts
Hi Jason,
After examined Sinclair plugins, I found that Grimlock for The Events Calendar made some modifications on events, not Sinclair theme itsel. It uses the_content() hook but I couldn’t to achieve work the hook with PODS plugin. I’m walking around and solve my problem temporary. I’m using “Execute Auto Template outside of the WordPress loop (advanced)” option and it works but it has some disadvantages.
I tested the plugin with blog posts and it’s working with them. Only event, venue and organizer (The Events Calendar post types) posts has this hook problem.
After the disable grimlock event plugins, PODS templates begin to work without problem.
I am working on the solution.
Thanks for your reply.
PS: I’m native Turkish speaker. If you need, I can translate Sinclair theme into Turkish 🙂
April 5, 2024 at 22:01 #47367@themoceratops- 1 Topics
- 430 Posts
Hi Yasin,
Thank you for your feedback! After doing some tests on my end I managed to replicate and then fix the issue. I’ve pushed a new update for Grimlock for The Events Calendar (1.3.4) with the fix. Can you update the plugin to see if that fixed the issue for you too?
About the translation, it’s up to you if you want to share your .po file with the Turkish translation for Sinclair and / or some of our Grimlock plugins 🙂 We would be glad to include them in future updates but please note that we don’t have updates planned at the moment (unless there are bugs to fix of course!), so it might be a while until we can include these translations. So it’s up to you whether you want to share it with us, but we appreciate the offer regardless!
Best regards,
April 8, 2024 at 14:52 #47370Yasin ArabaciogluParticipant@efrasiyab- 1 Topics
- 6 Posts
Hi Jason,
I tested new version both
1. on my project (that has lots of modification and plugins)
2. fresh installed wordpress and sinclair with only default plugins + PODS plugin + The Event Calendar Pro pluginIt works perfectly on both but has small bug. If event has 1 organizer after the content of the organizer, it execute POD auto template again. Please check sample the screenshot. I put a green Test Button with POD template. It shows twice after the content. If i comment out modules \meta\organizer.php line 79 //echo wp_kses_post( $organizer_content ); it works perfectly.
If we have 2 or more organizer we have no problem.
By the way, i found another small bug grimlock-the-events-calendar\templates\v2\src\views\modules\ meta.php line 29 “Event tags” cannot be translated by Loco Translate plugin. Because it doesn’t include in Sinclair translation file…
About translation, I have translated Sinclair theme and Grimlock for The Events Calendar using Loco Tranlate plugin for my project. I’ll send you if you give me an email address or alternative upload method.
April 10, 2024 at 05:29 #47377Yasin ArabaciogluParticipant@efrasiyab- 1 Topics
- 6 Posts
Hi Jason,
I forgot to write another small bug (!). If the event has two or more venues Grimlock’s template will be totaly messed up. Could you please check this by adding two venues for an event?
I solved to problem for my project by totaly copying Grimlock for the Events Calendar’s modules directory into Sinclair theme directory.
April 10, 2024 at 10:27 #47378@themoceratops- 1 Topics
- 430 Posts
Hi Yasin,
Indeed after some tests I’ve had the same issues when using one organizer, and using multiple venues. I’ve pushed a hotfix for Grimlock for The Events Calendar (1.3.5) to fix these issues.
About the translation of “Event tags”, this text was taken directly for The Events Calendar and since we haven’t modified it, you need to translate it directly in The Events Calendar with Loco Translate, not in Grimlock for The Events Calendar or Sinclair. Here’s a tip that might help you with translations : notice how the “Event tags” is followed by “the-events-calendar” in the meta.php file? This is called the text-domain and determines where you need to translate the text. If the text-domain is “the-events-calendar” you need to translate it directly in The Events Calendar, if it’s “sinclair” then you need to translate it in Sinclair, etc…
If you wish to send us your translation files, you can send them directly at support@themosaurus.com.
Best regards,
April 11, 2024 at 11:57 #47380Yasin ArabaciogluParticipant@efrasiyab- 1 Topics
- 6 Posts
Hello Jason,
Thanks for the fix. I tested it and everything OK now about Grimlock for The Events Calendar 🙂
About “Event tags” thanks for the tip. I found the line “Event Tags” (with uppercase T) and translate it (actually i’m official translator for The Event Calendar) but this didn’t work for me. May it be a case sensisitive area? I’ll report this issue to the Event Calendar team. Thanks.
If you wish to send us your translation files, you can send them directly at support@themosaurus.com.
I’ll mail the translated files within a week.
Thanks,
April 12, 2024 at 15:53 #47381@themodactyl- 0 Topics
- 6606 Posts
Hi Yasin,
I’m glad to read Jason was able to help you.
Don’t hesitate to keep us up to date about “Event Tags” translation.
Great to read that! We thank you for your contribution! It is really appreciated. 🙂
Best,
April 15, 2024 at 09:08 #47388 -
AuthorPosts
Hi there,
This topic has been inactive for a while now so we will be closing it to keep the forum tidy. Don't hesitate to create a new topic if you still need help and we'll be glad to help you!
Best regards,
The Themosaurus team.
The topic ‘the content() hook don’t work witt PODS Auto Template’ is closed to new replies.