Example #1
0
					<?php 
if (have_posts()) {
    ?>
                    <?php 
    while (have_posts()) {
        the_post();
        ?>
                  	<li><a href="<?php 
        the_permalink();
        ?>
"><?php 
        the_post_thumbnail(array(59, 51));
        the_title();
        ?>
</a><br/><?php 
        echo skt_bakery_content(10);
        ?>
</li>
                    <?php 
    }
    ?>
                    <?php 
} else {
    ?>
                    <li><a href="#"><img width="51" height="51" src="<?php 
    echo get_template_directory_uri();
    ?>
/images/creamy-cake.jpg">Lorem ipsum dolor sit amet</a><br><p>Sed nec pellentesque lacus. Aliqu aliquet leo eget metus</p></li><li><a href="#"><img width="51" height="51" src="<?php 
    echo get_template_directory_uri();
    ?>
/images/nws1.jpg">Lorem ipsum dolor sit amet</a><br><p>Sed nec pellentesque lacus. Aliqu aliquet leo eget metus</p></li><li><a href="#"><img width="51" height="51" src="<?php 
Example #2
0
            while ($bxquery->have_posts()) {
                $bxquery->the_post();
                ?>
        <a href="<?php 
                the_permalink();
                ?>
"><div class="feature-box">
            <?php 
                the_post_thumbnail();
                ?>
            <h2><?php 
                the_title();
                ?>
</h2>
            <?php 
                echo skt_bakery_content(16);
                ?>
        </div></a>
        <!-- feature-box -->
        <?php 
                if ($bx % 5 == 0) {
                    ?>
        <div class="clear"></div>
        <?php 
                }
                ?>
        <?php 
            }
            wp_reset_query();
            ?>
        <?php