Home › Forums › Calendar Products › Events Calendar PRO › Trying to call Events category for slider
- This topic has 4 replies, 2 voices, and was last updated 9 years, 9 months ago by Casey.
-
AuthorPosts
-
July 8, 2014 at 5:56 am #309292buitenaardigParticipant
Hello everyone,
I was hoping you could help me with a small problem I’m running into.
The website I’m working on has a slider and a carousel, just below eachother.
The code for both are about the same. You get to choose a category from wich you
want the content to show (http://stichtingtwentsebalie.nl.buitenaardig.hostingxs.nl/stb-01.jpg)The code is:
————————————————————————————
<?php
$carousel_title = get_post_meta($post->ID, ‘wt_meta_carousel_title’, true);
$cat_id = get_post_meta($post->ID, ‘wt_meta_carousel_cat’, true);$args = array(
‘cat’ => $cat_id,
‘post_status’ => ‘publish’,
‘ignore_sticky_posts’ => 1,
‘posts_per_page’ => 15
);
?>
————————————————————————————Now my question: How would I change the code to be able to select the categories made by The Events Calendar to show as a Carousel or Slider?
Looking forward to an answer, thank you so much in advance.
July 9, 2014 at 9:26 am #322440CaseyParticipantbuitenaardig,
Thanks for getting in touch! The Events Calendar uses a custom taxonomy named ‘tribe_events_cat.’ As I’m not familiar with that particular slider/carousel, I can’t speak to specifically how to customize it, but I would suggest reaching out to the developer of that plugin to see if they can offer any guidance on how to modify it to use a custom taxonomy instead of post categories.Hopefully that helps point you in the right direction, but let me know if you have further questions. Thanks! π
-Casey-
July 20, 2014 at 9:13 pm #466555CaseyParticipantI just wanted to follow up and see if youβre all set here or if you still have further questions. Just let me know if you have further questions or if I should go ahead and close out this thread. Thanks! π
-Casey-
July 20, 2014 at 11:51 pm #467859buitenaardigParticipantThanks for following up on this question Casey, very kind of you. Sadly enough I havent been able to figure it out yet but I’ll contact the developer of the plugin to see if we can work something out.
Thanks again!
July 21, 2014 at 6:49 am #470577CaseyParticipantOk, thanks for the reply. Since it looks like you’re all set here, I’ll go ahead and close this thread out. Feel free to start a new thread if you have further questions for us. Thanks! π
-Casey-
-
AuthorPosts
- The topic ‘Trying to call Events category for slider’ is closed to new replies.