Code for adding a style to my links
-
I am trying to put an
<a href=""></a>
from col-md-4 to where it end but not sure how to do it, im dont know about php, your help would be appreciated. Thanks[ Moderator note: code fixed. Please wrap code in the backtick character or use the code button. ]
<?php $posts = get_posts('numberposts=3' ); foreach ( $posts as $post ) : start_wp(); echo " <div class='col-md-4'><div class='news-block'>"; toolbox_posted_on(); if ( has_post_thumbnail() ) { the_post_thumbnail(); } ?> <div class="subtitle"><?php the_time('M'); ?> <?php the_time('d'); ?> <?php the_time('Y'); ?></div> <div class="subtitle-alt"> <a>" title="<?php the_title(); ?>"> <?php the_title() ; ?> </a> </div> <?php the_excerpt() ;?> <?php echo "</div></div>"; endforeach; ?>
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Code for adding a style to my links’ is closed to new replies.