• Resolved bklassenabb

    (@bklassenabb)


    Hi, I’m excited to use this plugin, and I’m wondering if subscribers get emails for posts created in subcategories. For example, if I have a category named “Travel” and a subcategory named “Car”, will someone who is subscribed to “Travel” get a post that is in the “Car” category?

    Thanks! Brenton

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author vandestouwe

    (@vandestouwe)

    No car must be checked

    Thread Starter bklassenabb

    (@bklassenabb)

    Ok thanks for the info. For anyone out there who wants people to receive updates for parent categories, I solved the issue with a bit of jQuery to check parent checkboxes when child checkboxes are clicked.

        $('.stc-categories-checkboxes ul.stc-nested-u input[type=checkbox]').change(function() {
    		
    		var clickedCheckboxIsChecked = this.checked;
    		var clickedCheckbox = $(this);
    		var clickedUL = $(this).closest('ul.stc-nested-u');
    		
    		// check/uncheck all child categories
    		$(this).closest('li').find('input[type=checkbox]').each(function() {
                $(this).prop('checked', clickedCheckboxIsChecked);
    		});
    		
    		// check parent categories
    		if (clickedCheckboxIsChecked) {
    			$(this).parents('ul.stc-nested-u').each(function() {
    				if (!$(this).is(clickedUL)) {
    					$(this).find('input[type=checkbox]').first().prop('checked', true);
    				}
    			});
    		}
        });
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Subcategory Notifications’ is closed to new replies.