so I have the short code showing only a few categories but when people click on filter. they can see all of them. is there a way to exclude the categories not listed from showing?
I tried just hidding it with css but because some of my most have more than one category if people uncheck one if it has more than one category it will continue to show because of the second category.
I'm really sorry for the delays we are preparing our next big update to go live later today and doing final tests. The developer will contact you soon.
so I have the short code showing only a few categories but when people click on filter. they can see all of them. is there a way to exclude the categories not listed from showing?
I tried just hidding it with css but because some of my most have more than one category if people uncheck one if it has more than one category it will continue to show because of the second category.
I tried something I saw on the forums:
<script type="text/javascript">
add_filter('wp_footer', function() {
?>
<script type="text/javascript">
(function ($) {
$(function () {
$.stecExtend(function (master) {
var exclude_category = [27,26];
var events = master.calData.filterGetEvents;
var filtered = [];
if (master.glob.options.view == 'agenda') {
$.each(events, function () {
if ($.inArray(parseInt(this.calid, 10), exclude_calendars) == -1) {
filtered.push(this);
}
});
}
master.calData.filterGetEvents = filtered;
}, 'beforeProccessGetEvents');
});
})(jQuery);
</script>
<?php
});
</script>
but this did not work.
I just don't know how to deactivate a category or two. please help!
Just checking back on this ticket. I really need to get this corrected in the next couple of days.
Hello Marian,
I'm really sorry for the delays we are preparing our next big update to go live later today and doing final tests. The developer will contact you soon.
Stachethemes Support
My Time Zone is GMT+3
Envato Profile | Facebook | Twitter | Newsletter | Rate & Review
Alright Valentin,
Thank you for the update.
-Marian
Hi,
In your theme functions.php at the bottom add this code:
Replace 1,2,3,4... with your category ids you want to exclude
Stachethemes Developer
Hello Zhivko,
Thank you!
I have added this as instructed. Here is a link to the screenshot of where I added it. it is not doing much though. Any idea why?
Delete the code I've sent you earlier and try out this one:
Stachethemes Developer
works perfectly!
Thank you!