<?php

    $data = $wpdb -> get_results("SELECT * FROM `slider` ORDER BY id DESC"); 

?>
<div id="content-wrap">
    <div class="slider-overlay slider-overlay--full">
        <div class="slider-overlay__bg">
            <?php foreach ($data as $row) { ?>
                <div class="slide">
                    <div class="slide__bg rocket-lazyload" style="background-image: url(<?php echo ''.$row->image.''; ?>)"></div>
                </div>
            <?php } ?>
    </div>
    <div class="slider-overlay__content">
        <?php foreach ($data as $row) { ?>
            <div class="slide slide--full">
                <div>
                <div class="container">
                    <div class="row">
                        <div class="col-sm-6">
                            <a href="#">
                                <div class="slide__title"><?php echo ''.$row->title.''; ?></div>
                                <p class="slide_titleSub"><?php echo ''.$row->description.''; ?></p>
                            </a>								
                        </div>
                    </div>
                </div>
                </div>
            </div>
        <?php } ?>
    </div>
    <div class="slider-overlay__overlay"></div>
</div>