< >
ID) );
$parent_id = wp_get_post_parent_id( $post->ID );
$args = array( 'post_mime_type' => 'application/pdf',
'post_type' => 'attachment',
'numberposts' => 1,
'post_status' => 'publick',
'post_parent' => $parent_id );
$direct_link = esc_url( wp_get_attachment_url( $post->ID ) );
$attachments = get_posts($args);
?>
post_parent > 0 ) {
?>
post_parent > 0 ) {
$parent = get_post( $post->post_parent );
$parent = strip_shortcodes( $parent->post_content );
$parent_excerpt_length = raindrops_warehouse_clone( 'raindrops_excerpt_length' );
$more = '...';
$parent_excerpt = wp_html_excerpt( $parent, $parent_excerpt_length, $more );
if( ! empty( $parent_excerpt ) ) {
?>
ID ), '
', '' );
raindrops_delete_post_link( esc_html__( 'Trash', 'raindrops' ) . raindrops_link_unique( 'Post', $post->ID ), '
', '' );
?>
>