Two more essays (with no succes) :
<?php
if($images =& get_children( 'post_type=attachment&post_parent='. $post->ID)){
foreach($images as $image){
$caption = $image->post_excerpt;
$description = $image->post_content;
echo $caption;
echo $description;
}
}
?>
<?php
if($images =& get_children( 'post_type=attachment&post_parent='. $post->ID)){
foreach($images as $image){
echo apply_filters('the_excerpt', $image->post_excerpt);
echo apply_filters('the_content', $image->post_content);
}
}
?>
I really don’t know why I can’t get things printed.
Even if the image is in the uploads folder.
At least I get no errors ??
As a radical approach (and don’t know if has something to do indeed), we could use the wpdb Class, which theoretically can acces to anything grabbed in the database ?
Which I don’t know, is how do we write the template tag for that.
How do I call the caption, how do I relate it to the current post, etc.
So please it would be really cool to pull captions and descriptions dynamically, in a custom way.