Sean

Forum Replies Created

Viewing 15 posts - 46 through 60 (of 209 total)
  • Author
    Posts
  • in reply to: Various problems with version 4.4.x #1245509
    Sean
    Participant

    This reply is private.

    in reply to: Various problems with version 4.4.x #1244180
    Sean
    Participant

    This reply is private.

    in reply to: Various problems with version 4.4.x #1243326
    Sean
    Participant

    This reply is private.

    Sean
    Participant

    Hi Nico,

    Thanks for the plugin suggestion and for sharing Barry’s function to change the venue slug. I noticed that the function was written back in 2015. Is the hook used still the best to use or does the latest version of Events Calendar PRO have a better hook for rewriting the venue slug?

    Thanks again and hope you have a great weekend as well!
    Karly

    in reply to: All Events link appears at top of List View as of 4.3 #1211906
    Sean
    Participant

    Hi Cliff,

    Thanks for having a couple others try testing this. I think you may have been looking at the schema versions from the system information I had posted prior to when the latest maintenance updates were released. I’m seeing the correct versions: schema-version 4.3.5 and pro-schema-version 4.3.4

    I’m stumped as to why that link is showing up on our install since we tried it with the core plugins, default WP theme and no customizations. It seems that it’s only happening on our site though, so I’ll need to just keep that css in place to hide the link.

    Thanks again for trying to get to the root of the problem with this.

    in reply to: All Events link appears at top of List View as of 4.3 #1210079
    Sean
    Participant

    Hi Cliff,

    There is no custom code; only the default Twenty Sixteen theme and the Modern Tribe plugins (all customization’s were in the child theme). I cleared my cache and viewed the page from an incognito browser and am seeing the link. I am also seeing the link on other devices, so its surprising that the link is not showing on your end.

    Unfortunately, we’re a small team and only have one staging site that is a copy from production, so I cannot get another “fresh” instance up and running. It seems the solution at this point is to keep the custom CSS in place indefinitely to hide that link.

    in reply to: All Events link appears at top of List View as of 4.3 #1209687
    Sean
    Participant

    This reply is private.

    in reply to: All Events link appears at top of List View as of 4.3 #1209500
    Sean
    Participant

    This reply is private.

    in reply to: All Events link appears at top of List View as of 4.3 #1207605
    Sean
    Participant

    This reply is private.

    in reply to: All Events link appears at top of List View as of 4.3 #1207352
    Sean
    Participant

    This reply is private.

    in reply to: How are Related Events determined? #1177924
    Sean
    Participant

    Hi George,

    Sorry for the late follow up here. Thank you so much for the additional info and this “template” for modifying how related events are found. As always, really appreciate the help!

    Best regards,
    Karly

    in reply to: Event Aggregator Settings #1177914
    Sean
    Participant

    Hi Nico,

    Thanks for the info. Excluding the Event Category from the Facebook events is a must-have for us. Would the team be willing to share a snippet we could add to functions.php to make this happen? If so we’ll definitely go ahead and purchase the plugin. Please let me know either way.

    Thanks,
    Karly

    Sean
    Participant

    Good morning Brook,

    This works perfectly! As always thank you very much for the prompt reply and the fix. I’m sure others will find this helpful as well.

    Thanks and have a great day!
    Karly

    in reply to: How are Related Events determined? #1170806
    Sean
    Participant

    Hey George,

    Okay thanks for confirming! One last question. In my case, I’d like to replace the existing Tag and Event Category filter with my custom taxonomy. So if there is an event with a common value from my custom taxonomy, I’d like it to display in the related events (regardless of any other variables such as tags, etc).

    Would using the tribe_related_posts_args filter in a function mean the custom code would replace the default query that uses tags and event categories? Meanwhile, using the tribe_related_posts_args_limiter function will add those “rules” to the existing tag and/or event categories criteria?

    Just want to make sure I’m grasping how these work prior to attempting to replace the tag/categories with my custom taxonomy, as I’m certainly a novice when it comes to php 🙂

    – Karly

    • This reply was modified 9 years, 6 months ago by Sean.
    in reply to: How are Related Events determined? #1170203
    Sean
    Participant

    Hi George,

    As always, thanks for the info on this. It does help get me on the right path!

    Just to make sure I’m understanding this correctly, could you please confirm a few things?

    By default, the related posts display 3 random events that have the same tags or event categories as the event currently being viewed? Related events are not ranked higher or lower than other related events (e.g. if an event has two of the same event categories AND one or more of the same terms in its event name, it won’t appear before an event that has only one matching event category and no common terms)?

    Also, I found the following snippet from Brook that may be helpful in guiding me. Does this filter (and example) add the two month time frame to the existing tags and event categories parameters, or does it replace the original parameters? In other words, will it show only events occurring within 2 months of the current event’s date, or will it show events occurring within 2 months of the current event’s date that also have one or more of the same tags and/or event categories?

    Thank you,
    Karly

    <?php
    /*
     * Limits Related Posts to only show events within 2 months of the current events dates
     */
    function tribe_related_posts_args_limiter ( $args = array() ) {
    	global $post;
    	$event_start_date = strtotime( $post->EventStartDate );
    	$event_end_date = strtotime( $post->EventEndDate );
    	$date_format = Tribe__Events__Date_Utils::DBDATETIMEFORMAT;
    	$args['eventDisplay'] = 'custom';
    	$args['start_date'] = date_i18n(
    		$date_format,
    		strtotime( '-2 month', $event_start_date )
    	);
    	$args['end_date'] = date_i18n(
    		$date_format,
    		strtotime( '+2 month', $event_end_date )
    	);
    	return $args;
    }
    add_filter( 'tribe_related_posts_args', 'tribe_related_posts_args_limiter', 10, 1 );
Viewing 15 posts - 46 through 60 (of 209 total)