<div class="test">
<div class="img"></div>
</div>
.test {
width: 800px;
height: 200px;
border: 10px solid #bebebe;
border-bottom: none;
margin: 100px auto;
position: relative;
}
.test:after {
content: '';
display: block;
width: 100%;
height: 10px;
background: #bebebe;
position: absolute;
left: 0;
bottom: 0;
}
.img {
width: 200px;
height: 400px;
background: yellow;
margin: -100px auto 0;
}
SPECIAL NOTE: When there are multiple posts on a page published under the SAME DAY, the_date() only displays the date for the first post (that is, the first instance of the_date()). To repeat the date for posts published under the same day, you should use the Template Tag the_time() or get_the_date() (since 3.0) with a date-specific format string.
Use <?php the_time( get_option( 'date_format' ) ); ?> to add the date set in the admin interface.
add_action( 'template_redirect', 'my_checkout_redirect' );
function my_checkout_redirect() {
global $wp;
if ( is_checkout() && ! empty( $wp->query_vars['order-received'] ) ) {
wp_redirect( '%my_custom_url%' );
exit;
}
}