How to organise post by category and date

Looking for the solution, I want to give more information about what I have done so far:

My Actual configuration
– WordPress : 3.8
– PHP : 5.3
– Theme : custom based on _s (underscore)
– Hebergeur : local XAMPP

My archive template

        <main id="main" class="site-main" role="main">

        <?php
        // get all the categories from the database
        $cats = get_categories('child_of=34'); //cat 34 is the main category

            // loop through the categries
            foreach ($cats as $cat) {
                // setup the cateogory ID
                $cat_id= $cat->term_id;
                // Make a header for the cateogry
                echo "<h2>".$cat->name."</h2>";
                // create a custom wordpress query
                query_posts("cat=$cat_id&posts_per_page=-1");
                // start the wordpress loop!
                if (have_posts()) : while (have_posts()) : the_post(); ?>

                    <?php // create our link now that the post is setup ?>
                    <a href="https://wordpress.stackexchange.com/questions/130072/<?php the_permalink();?>"><?php the_title(); ?></a>
                    <?php echo '<hr/>'; ?>

                <?php endwhile; endif; // our wp loop will start again for each category ?>
            <?php } // done the foreach statement ?>

    </main><!-- #main -->

1- try using wp_get_archives, I got months listing but it’s impossible to exclude/include specific category.

2- try using wp_list_categories, I got categories listing but it’s impossible to exclude/include specific category.

I found “WordPress Category Archive” plugin but he hasn’t been updated since 2011
I also found http://kwebble.com “WordPress plugin Archives for a category” but it’s no longer maintained.

Still looking to find the solution.

Thanks for your help