Support » Plugin: Post PDF Export » Shortcode for download of one single post

  • Resolved vanMeerdervoort



    the [pdfex] short code exports all posts, and the ‘add download link to all posts’ function does exactly what it sais.

    I need a download button on just one post, one that I specify.

    it would be great if you add a [pdfex_single] (or something) shortcode that generates a PDF of just the page or post it is used on.

    Is that possible? Is there a workaround to use now?



Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi,

    if you want to display the download link for a single post you just have to add an link with the get parameter ?pdfex_dl=[ID OF THE POST].

    In my case I just added a link in to my single post template.

    <a href="?pdfex_dl=<?php echo $post->ID; ?>"><span class="icon-download"></span> download .pdf </a>

    Maybe that’s helpful for you.


    Thread Starter vanMeerdervoort


    Thanks Marco, I’ll try that 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Shortcode for download of one single post’ is closed to new replies.