Home › Forums › Calendar Products › Events Calendar PRO › Events not showing up in blog
- This topic has 6 replies, 3 voices, and was last updated 10 years, 10 months ago by
Support Droid.
-
AuthorPosts
-
January 8, 2015 at 11:10 am #930528
Nancie
ParticipantI need to have the events show up in my blog post in order to be able to use the events calendar. Can you please show me where I should add the code tribe_events to my query?
Thanks, without the events added I will not be able to use your widget.
January 8, 2015 at 2:07 pm #930605Josh
ParticipantHey Nancie,
Thanks for reaching out to us!
We have a setting which allows you to select to allow you to show your events within your main blog loop. You can find that setting under the Event settings “General” tab (https://cloudup.com/cHgmHP-Seoo).
If you have a custom query that you’re using, you would add the ‘tribe_events’ to the “post_type” arg for the WP_Query. You can find out more about that here.
Let me know if this helps.
Thanks!
January 8, 2015 at 5:53 pm #930680Nancie
ParticipantThis reply is private.
January 9, 2015 at 11:46 am #930991Josh
ParticipantHey Nancie,
Thanks for following up with us.
It looks like this is a part of a WooCommerce template. You’ll notice that the first line includes “$args”. This is a variable that gets defined previously. When it is defined, it should be defined with an array and within the array is an argument for “post_type”. That is where you will add the “tribe_events”.
However, the file you’ve pulled this excerpt from may not include the code where the variable is defined. It looks like this may be within a loop template that gets called into another file. You may have to trace back and find the file that this feeds into to modify the variable.
Let me know if this helps.
Thanks!
January 12, 2015 at 7:19 am #931499Nancie
ParticipantThis reply is private.
January 12, 2015 at 11:10 pm #931863Josh
ParticipantHey Nancie,
Thanks for providing this information. It’s difficult to decipher through a scan of that file without seeing the overall structure of the theme. We are limited in the amount of support we are able to provide for customizations such as these but I do have another idea that may help.
In the original post, you mentioned that the code was found within functions.php. With this, it should be wrapped in a “function some_function_name() {” type of format. That function should be hooking in with an “add_action” right in the same area. Could you tell me the hook that it is being called with that “add_action”.
Thanks!
July 7, 2015 at 6:31 am #983669Support Droid
KeymasterThis topic has not been active for quite some time and will now be closed.
If you still need assistance please simply open a new topic (linking to this one if necessary)
and one of the team will be only too happy to help. -
AuthorPosts
- The topic ‘Events not showing up in blog’ is closed to new replies.
