Problems displaying attachment list
-
I am working with a custom post type and attempting to display an attachments list in a table. I can attach media/items to the custom post and view them in the /edit mode. However, I’ve added the following shortcode to the php file that builds the table.
‘echo do_shortcode(‘[wpba-attachment-list post_id=”‘.$post_id.'”]’);’
I am able to output the $post_id and it looks correct. When the table loads and regardless of whether there are attached files, the output is always “Sorry, no attachments exist”
Any help would be greatly appreciated.
Chris
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Problems displaying attachment list’ is closed to new replies.