bottom border for each instance of php the_date
-
My site is https://rulebrittaniea.org
I am using php the-date to call a date header only for the most recent post on days with multiple posts. The code looks like this:
<p class="postdate" style="text-align: right;"><?php the_date('', '', '', TRUE); ?></p> <h2 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link','bnTiny'); ?>: <?php the_title(); ?>"><?php the_title(); ?></a></h2> <p class="posted"><?php the_time(); ?> | <?php comments_popup_link('0', '1', '%'); ?> | <?php the_category(', '); ?> | <?php the_tags('', ', ', ''); ?> <?php edit_post_link($link = __('Edit','bnTiny'), $before = ' | ', $after = ''); ?></p> <?php the_content(); ?>
I am trying to get a dotted border to show up after each instance of the_date but so far the border is showing up after every single post, even if there are multiple posts on the same day.
Here is what my css looks like:
.postdate { font: normal 1.5em/120% 'Nimbus Sans L', helvetica, arial, sans-serif; text-transform: uppercase; color: #888; text-align: right; border-bottom: dotted 1px #bbb; }
How can I get that bottom border to appear only ONCE each day?
Thanks for your help.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘bottom border for each instance of php the_date’ is closed to new replies.