kdosd
Forum Replies Created
-
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!
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+}‘ mla_target=”_blank”]`
Is this still the best approach?
Thank you!