Will Hill
Forum Replies Created
-
AuthorPosts
-
Naveen,
Sorry I didn’t see this reply. I don’t know if I have FTP details. I’ll have to look
All of the events are in the same time zone as us. Here is an example event that was pulled from Facebook: https://county10.com/events/2020-health-fitness-expo/
It came in as the 24th even though the event is on the 25th.
I just want recurring events to show the closest date. For example, if you look at https://bridgervalleyguide.com/, it doesn’t show the recurring events at the library, even though they happen once a week. However, if you go to https://bridgervalleyguide.com/events/, you can see those same events coming up next week. That’s because I’ve used the shortcode to only show recurring events once on the homepage, but it is showing the latest day. So those two events happen once a week for a year, and on the homepage it has them listed as happening in December of 2020, since the is when the event ends.
Does that make sense? When it makes a recurring event single, it is showing the last recurring date instead of the closest recurring date.
While that works, I’m wanting to use the single_event=”1″ attribute to only show recurring events once, but when I do that, it starts using the latest event date for the recurring event, as shown in my screenshot. It’s fine as long as I don’t use the single_event attribute.
Any suggestions?
Will this be a “implement a code snippet and it will work” type fix or will it be something that I’ll need to wait for a future update on?
This reply has been marked as private.The shortcode already uses event_type=”upcoming”, and Upcoming is set to the default method of showing events.
This reply has been marked as private.This reply has been marked as private.This reply has been marked as private.We have considered it, but right now we have a free event package, and some of the events on it are recurring events that may happen every week for the next year or more. We want those to be able to stay on there as recurring events, but have one time events expire after they pass their event date. In the meantime we can manually delete them, but it would be a handy feature.
That did it. Thank you Kiran
So would that just look like this:
add_filter(‘geodir_rand_seed’,’_my_geodir_rand_seed’);
function _my_geodir_rand_seed($rand_seed){
$rand_seed = get_transient( ‘geodir_rand_seed_custom’ );// if we don’t have a transient then set a new one
if(!$rand_seed){
$rand_seed = time();
set_transient( ‘geodir_rand_seed_custom’, $rand_seed, 1 );
}// validate
$rand_seed = absint($rand_seed);return $rand_seed;
}I just want to make sure I have the code right, since my PHP ins’t great.
I tried using the code found here as well: https://wpgeodirectory.com/support/topic/listings-random-not-changing/#post-502309
But it didn’t seem to have any effect.
-
AuthorPosts