Title: kdosd's Replies | WordPress.org

---

# kdosd

  [  ](https://wordpress.org/support/users/kdosd/)

 *   [Profile](https://wordpress.org/support/users/kdosd/)
 *   [Topics Started](https://wordpress.org/support/users/kdosd/topics/)
 *   [Replies Created](https://wordpress.org/support/users/kdosd/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/kdosd/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/kdosd/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/kdosd/engagements/)
 *   [Favorites](https://wordpress.org/support/users/kdosd/favorites/)

 Search replies:

## Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Media Library Assistant] Syntax for turning caption into a link opening in a new tab](https://wordpress.org/support/topic/syntax-for-turning-caption-into-a-link-opening-in-a-new-tab/)
 *  Thread Starter [kdosd](https://wordpress.org/support/users/kdosd/)
 * (@kdosd)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/syntax-for-turning-caption-into-a-link-opening-in-a-new-tab/#post-6885729)
 * I can use either caption or description and would prefer to simplify the shortcode
   as much as possible by using a custom template.
 * As suggested, my custom template “dspl-captions-table now has the following:
 *     ```
       <td class='wp-caption-text gallery-caption'>
           <img src=my-icon> <a href="{+file_url+}" target="_blank">[+caption+]</a>
         </td>
       ```
   
 * When I use this short code:
    `[mla_gallery post_mime_type=application/pdf attachment_category
   =true-lumens-reports attachment_tag=sealite-lumos link=none columns=1 order=title
   mla_markup=dspl-captions-table mla_target="_blank"]`
 * I get a bad link:
    `http://the-file-url-for-page-I-was-on/%7B+file_url+%7D` I’m
   not sure I’m what parameters to set to use this correctly from the shortcode.
   What should that be?
 * It does work for me when I embed the shortcode in code tags and explicitly create
   the html in the shortcode – that’s a lot more complex the long run and I’d like
   to keep it simpler as I’m not the only person maintaining the website.
 *     ```
       <c o d e>[mla_gallery post_parent=all post_mime_type="application/pdf" link=file size=icon attachment_category=true-lumens-reports attachment_tag=sealite-lumos mla_caption='<a href="{+file_url+}">{+description+}</a>' mla_target="_blank" columns=1 mla_markup=dspl-captions-table]
       mla_caption='<a href="{+file_url+}">{+description+}</a>' mla_target="_blank" columns=1 mla_markup=dspl-captions-table]</c o d e> 
       ```
   
 * Thank you for a great plug-in!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Media Library Assistant] Syntax for turning caption into a link opening in a new tab](https://wordpress.org/support/topic/syntax-for-turning-caption-into-a-link-opening-in-a-new-tab/)
 *  Thread Starter [kdosd](https://wordpress.org/support/users/kdosd/)
 * (@kdosd)
 * [10 years, 7 months ago](https://wordpress.org/support/topic/syntax-for-turning-caption-into-a-link-opening-in-a-new-tab/#post-6885718)
 * I found this solution from 4 months ago to embed the following in code tags:
 * [mla_gallery post_parent=all post_mime_type=”application/pdf” link=file size=
   icon mla_caption=’[{+title+}](https://wordpress.org/support/users/kdosd/replies/{+file_url+}?output_format=md)‘
   mla_target=”_blank”]`
 * Is this still the best approach?
 * Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)