Home › Forums › Calendar Products › Events Calendar PRO › Show related events by CATEGORY, not randomly
- This topic has 4 replies, 3 voices, and was last updated 6 years, 2 months ago by cityofpasadena.
-
AuthorPosts
-
January 23, 2018 at 4:13 pm #1434141cityofpasadenaParticipant
I’m modifying related events to show by category. I am using the code snippet following the instructions from a forum post here as follows:
/* Tribe, change related posts arguments */
function tribe_modify_related_posts_args ( $args ) {
$args['meta_key'] = '_EventStartDate';
$args['orderby'] = 'meta_value';
$args['order'] = 'ASC';
return $args;
}
add_filter( 'tribe_related_posts_args', 'tribe_modify_related_posts_args' );What is the name of the meta_key to show related events by category, and order them by eventStartDate?
January 24, 2018 at 1:37 pm #1435118AndrasKeymasterHello there,
Thanks for reaching out to us.
At the moment we are experiencing high traffic in our forums. Our response time might be a bit longer than usual, our apologies for this.
One of our support members will help you out as soon as possible.
Please also note that support for customizations is limited as stated in our support policy.
Thank you for your patience!
Cheers,
AndrasJanuary 24, 2018 at 5:08 pm #1435314Jaime MarchwinskiKeymasterThanks so much for reaching out again!
As Andras mentioned, customization support is limited as stated in our support policy, but I’d love to help point you in the right direction.
The following forum post has a snippet that allows only one category to be used for Related Events:
You can also try using the snippet provided in this forum post about showing Related Events chronologically:
Let me know how that goes and if you have any other questions on this topic!
Thanks,
Jaime
February 15, 2018 at 8:36 am #1454387Support DroidKeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘Show related events by CATEGORY, not randomly’ is closed to new replies.