<?php query_posts($query_string . '&orderby=name&order=asc'); ?>
<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
<div class="single-cat-img">
<a href="<?php the_permalink();?>"><img style="background-image:url( <?php the_field('featured_image');?>)" src="<?php echo get_template_directory_uri(); ?>/assets/img/cat_placeholder.gif"/><br/>
<?php the_title();?></a>
</div>
<?php endwhile; else : ?>
<?php endif; ?>
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.