Adding image at beginning of line-break in loop
-
Hi! Anyone know of a way to auto-detect a line-break within a loop, and insert an image there?
I have a loop in the header of this site with an auto-feed of post-titles from a category listed with snow-flakes in between. However, when the line breaks after a snowflake, the next line has none…
Here’s the link to the site:
https://themusicfest.com/test/And, the current loop coding:
<?php query_posts('category_name=artists' .'&posts_per_page=50' .'&orderby=title&order=ASC'); ?> <?php if (have_posts()) : ?> <?php while (have_posts()) : the_post(); ?> <img src="/test/images/snowflake.png"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php echo str_replace (' ', ' ', get_the_title()); ?></a> <?php endwhile; ?> <?php endif; ?> <img src="/test/images/snowflake.png">
Ideas?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Adding image at beginning of line-break in loop’ is closed to new replies.