Support » Plugins and Hacks » COP PDF Attachment Menu » [Plugin: COP PDF Attachment Menu] Can it be used outside the post?
5 years ago
I would like the link to a pdf to be outside the postcontent part of the template. I will be attaching one pdf for each post, so I would like a button somewhere aside the postcontent with al link to the pdf.
Sorry for the slow response, apparently I’m not getting the emails from this forum. Have to look into that.
The default functionality is to use:
‘post_parent’ => get_the_ID(),
That is a shortcode argument so you can use [pdfmenu post_parent=”(post)”]. Or in your php:
do_shortcode(‘[pdfmenu post_parent='” . $wp_query->post->ID . ‘”‘);
The plugin could also be changed to use: ‘post_parent’ => $wp_query->post->ID;
So you can certainly make that change and I believe all you have to do is change the name of the plugin in the file and it won’t get future updates. (I don’t have any planned currently).