WordPress.org

Ready to get started?Download WordPress

Forums

Post PDF Export
[resolved] Shortcode for download of one single post (3 posts)

  1. vanMeerdervoort
    Member
    Posted 10 months ago #

    Hi,

    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?

    cheers

    Vincent

    http://wordpress.org/extend/plugins/post-pdf-export/

  2. marcoook
    Member
    Posted 6 months ago #

    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.

    cheers
    Marco

  3. vanMeerdervoort
    Member
    Posted 6 months ago #

    Thanks Marco, I'll try that :)

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.