Hi all,
I've been looking through the shortcode and advanced tweaks docs as well as searching the forums, but couldn't find the answer. Is it possible to display the media file name? I am using a custom shortcode function to display an archive of posts and somewhere in there I'd like to display the audio file name. The reason is that the people managing the site are having some quality control issues and would like an easy way to determine what media file is being used. All their media files are named by date.
Here's the shortcode function I'm using:
function archive_show_post($atts, $content = null) {
extract(array_merge(array(
"num" => '10',
"cat" => ''
), $atts));
// global $post;
$my_query = new WP_Query('showposts='.$num.'&orderby=post_date&cat='.$cat);
if($my_query->have_posts()) {
$return='<div id="archive-show-query">';
while($my_query->have_posts()) {
$my_query->the_post();
$return.='<p><a href="'.get_permalink().'">'.get_the_title("","",false).'</a></p>';
$return.='<p>'.get_the_content("","",false).'</p>';
$return .= '<p>Click Arrow to Play'.powerpress_content('').'</p>';
}
$return.='</div> ';
}
return $return;
}
add_shortcode("archive_show", "archive_show_post");