Post-Auszug im Bildanhang anzeigen

Ich möchte einen Auszug aus dem Beitrag im unteren Bildanhang zeigen, hier ist mein Code

 
<?php // action hook for placing content above #content thematic_abovecontent(); // filter for manipulating the element that wraps the content echo apply_filters('thematic_open_id_content', '
' . "\n\n"); // start the loop while (have_posts()) : the_post(); // action hook for placing content above #post thematic_abovepost(); ?>
Posted In: <a href="https://wordpress.stackexchange.com/questions/64749/show-post-excerpt-in-image-attachement/post_parent); ?>" rev="attachment">post_parent); ?>
post_parent; $attachments = array_values(get_children(array('post_parent' => $post->post_parent, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'order' => 'DESC', 'orderby' => 'ID'))); foreach ($attachments as $k => $attachment) if ($attachment->ID == $post->ID) break; $next = $k + 1; $prev = $k - 1; $next_link = ""; $prev_link = ""; if (isset($attachments[$next])) { $next_exists = 1; $next_link = "ID) . "'> Next Photo >>"; $img_link = "ID) . "'>"; } if (isset($attachments[$prev])) { $prev_exists = 1; $prev_link = "ID) . "'> << Previous Photo"; if (!$next_exists) { $img_link = "ID) . "'>"; } } if (!$next_exists and !$prev_exists) { $img_link = "ID) . "'>"; } ?>

ID, 'full'); ?>

post_excerpt)) the_excerpt(); ?>

<a href="https://wordpress.stackexchange.com/questions/64749/show-post-excerpt-in-image-attachement/post_parent); ?>" rev="attachment">Read Full Gossip Here >>

Solutions Collecting From Web of "Post-Auszug im Bildanhang anzeigen"

Beziehe dich zuerst auf diese Antwort von @MikeSchinkel. Sie können die function in functions.php stellen

Als nächstes fügen echo robins_get_the_excerpt($post->post_parent); einfach echo robins_get_the_excerpt($post->post_parent); unter dem Bildanhang. So was :

 
< ?php echo robins_get_the_excerpt($post->post_parent) ?>

Bitte beachten Sie, dass dieser Code nicht getestet wurde.