Forum Replies Created
-
AuthorPosts
-
Susanne Thiede BarnetParticipant
Scratch that last response. I figured out how to make the link use https://.
Thanks,
TylerSusanne Thiede BarnetParticipantThank you for the quick response!
I went through and fixed the Google font error that the console was throwing and took a look at the error you pointed out about failing to execute ‘pushState’ on ‘History’.
I noticed that when I first load the events page to the current month and I hover the link to go to next month (may), the URL is ‘https://boulderjct.org/all-events/’. After I click the link and go to may, if I hover over the link to go to the next month (june) the URL becomes boulderjct.org/all-events/2017-06/. So for some reason, the ‘https://’ is being stripped out after the first click. Would there be any way to force this link to always use ‘https://’?
Thanks again for all of your help.
TylerSusanne Thiede BarnetParticipantThank you for all of your help. I used the functions you mentioned and got it working!
Susanne Thiede BarnetParticipantThanks for the quick response! Now that I’ve got the function sending an email every time an event is published, a few new questions arose.
Currently when I publish a recurring event the function fires for each event in the recurrence. Is there a way to only trigger the function after the last event in a recurring group is published?
Also is there a way to grab the link to the ‘all’ page for the event that is created? eg events/test-event/all/?
I see that there are tribe_is_recurring_event and tribe_display_current_events_slug functions that could be helpful in accomplishing this, however it doesn’t appear that you can pass them an ID.
Thanks!
December 2, 2014 at 10:22 am in reply to: Page not Redirecting after activating Events Calendar. #905374Susanne Thiede BarnetParticipantI tracked the issue to being that the WP_HOME and WP_SITEURL were from different domains.
porcupineup.com/ (mask domain)
porcupinemountains.com/porcupine (WP installation folder)I switched them to porcupinemountains.com &
porcupinemountains.com/porcupineThe plugin is working fine now.
Susanne Thiede BarnetParticipantThis is being done by allowing users to have restricted access in the back-end of the site. They can enter events using the Events Calendar/Events Calendar Pro plugins. I think only allowing the user to select from pre-existing venues would be a plausible solution.
Susanne Thiede BarnetParticipantNever mind, turns out the old template files were never deleted so I was pulling old template files from the views folder (In case anyone else encounters this problem)
Susanne Thiede BarnetParticipantIs there any way around the full link tag in the custom field? I don’t know if my client will understand HTML in this instance. If not, any sort of timeline for version 3.0 which will handle this? It’s kind of a big feature the client wants to have event links. Thanks in advance!
Susanne Thiede BarnetParticipantThanks! I think I should be able to customize things to the way I want them now.
Susanne Thiede BarnetParticipantSorry I worded that a bit poorly. An example event on my site would be http://www.visitoshkosh.com/event/the-oshcar-awards/2013-02-05/. When setting recurrence (say the event runs every monday from Feb 6- March 6) I would set the start and end date to Feb 6th, all day event. Then set the recurrence to custom-> weekly -> and check Monday, then set the recurrence to end on March 6th. I am looking for a way to find the last day the event runs (March 6th) but using tribe_get_end_date() would give me February 6th. The idea is that I want to show the full span of the event (startDate-endDate).
Susanne Thiede BarnetParticipantscratch the last question.
Susanne Thiede BarnetParticipantAlso is there a simple way just to check if an event is a recurring event?
Susanne Thiede BarnetParticipantI’ve got a solution up and running. You can see the loop code here:
Here is the filtering in action on a sandbox development installion:
Susanne Thiede BarnetParticipantLooks like some of that got cut off. Let me try again:
query(
array(
‘post_type’ => ‘tribe_events’,
‘posts_per_page’ => -1,
‘orderby’ => ‘meta_value’,
‘order’ => ‘ASC’,
‘meta_key’ => ‘_EventStartDate’,
‘meta_query’ => array(
array(
‘key’ => ‘_EventStartDate’,
‘value’ => array( $startDate.’ 00:00:00′, $endDate.’ 23:59:59′),
‘type’ => ‘DATETIME’,
‘compare’ => ‘BETWEEN’
)
)
)
);if ($featured_query->have_posts()) :
while ( $featured_query->have_posts() ) : $featured_query->the_post(); ?>//DO WHATEVER YOU NEED TO DO WITH THE POSTS HERE
<?php else: echo ' Sorry, there are no posts for the selected dates.’; ?>
Susanne Thiede BarnetParticipantI think I was right about my hunch that the eventDisplay property of ‘upcoming’ was nerfing the start_date selector from the tribe_get_events method. I would recommend classifying that as a bug and fixing it in an upcoming release. In the meantime, here is a workaround using WP_QUERY:
Pretty source:
http://pastebin.com/fgpC2ND1Probably pretty ugly source:
query(
array(
‘post_type’ => ‘tribe_events’,
‘posts_per_page’ => -1,
‘orderby’ => ‘meta_value’,
‘order’ => ‘ASC’,
‘meta_key’ => ‘_EventStartDate’,
‘meta_query’ => array(
array(
‘key’ => ‘_EventStartDate’,
‘value’ => array( $startDate.’ 00:00:00′, $endDate.’ 23:59:59′),
‘type’ => ‘DATETIME’,
‘compare’ => ‘BETWEEN’
)
)
)
);if ($featured_query->have_posts()) :
while ( $featured_query->have_posts() ) : $featured_query->the_post(); ?>//DO WHATEVER YOU NEED TO DO WITH THE POSTS HERE
<?php else: echo ' Sorry, there are no posts for the selected dates.’; ?>
-
AuthorPosts