WordPress.org

Ready to get started?Download WordPress

Forums

COP PDF Attachment Menu
Can it be used outside the post? (2 posts)

  1. Jack
    Member
    Posted 2 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.

    http://wordpress.org/extend/plugins/cop-pdf-attachment-menu/

  2. Trevor Green
    Member
    Plugin Author

    Posted 2 years ago #

    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).

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic