- This topic has 0 replies, 1 voice, and was last updated 11 years, 5 months ago by .
Viewing 1 post (of 1 total)
Viewing 1 post (of 1 total)
These forums are now closed and remain for historical purposes.
None of the content applies to the new version 3. For support, get in touch via our contact form.
Forums › Forums › Search & Filter Pro › Attachment description
Hi, I’m currently using this loop to use your plugin to search in a list of attachments.
<?php while ($query->have_posts())
{$query->the_post();
?>
<table>
<tr>
<td><?php the_attachment_link( get_the_ID(), ‘full’ ); ?></td>
<td><?php the_date( ); ?></td>
<td><?php the_excerpt(get_the_ID()); ?></td>
<td><?php echo human_filesize( filesize( get_attached_file( get_the_ID() ) ) ); ?></td>
</tr>
</table>
<?php } ?>
This is working great, but I can’t get the description column to display only the attachment description: right now it also displays the title.
Can you help?