Support » How-To and Troubleshooting » Custom Category List
3 years, 8 months ago
Would anyone know of a way to display a list of specific category. Looking for something that will display the title of the post and a attached file. PDF, .DOC, .XLS, etc.
The screenshot here would be an example.
Found these links to be useful.
I have the following code.
$id = 811; // ID of an attachment
echo wp_get_attachment_link( $id, '' , false, false, 'My link text' );
Which works but it is pulling that specific attachment any suggestions on how to tell it to pull the first attachment from a list of post?