• Resolved aktivbuerger

    (@aktivbuerger)


    Howdy,

    is it possible to put a print-button on one particular page?

    And can I choose PDF for one page and EBOOK for an other page of the same website?

    Looking forward to helpful replies.

    Thanks & kind regards,
    Regina.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Michael Nelson

    (@mnelson4)

    Hi @aktivbuerger, thanks for reaching out.
    Yes I think what you want is possible, but let me make sure I understand.
    You want most pages to not have any print buttons. But you want one particular page to have a PDF button, and a different page to have an eBook button, right?

    Thread Starter aktivbuerger

    (@aktivbuerger)

    Hi Michael,

    thanks for your reply.
    Yes, that is exactly what I’m looking for.

    Bye, Regina.

    Plugin Author Michael Nelson

    (@mnelson4)

    Ok great. I haven’t had anyone request this before, so it takes a bit of work. I’ll step you how to create the URL to send folks to for generating the PDF or eBook.

    Let’s assume the post you want the page to have a PDF button’s post ID is 123. This is the URL you want to send people to:

    https://www.aktive-buergerschaft.de/?post-type=post&include-private-posts=1&show_site_title=1&show_site_tagline=1&show_site_url=1&show_date_printed=1&show_title=1&show_date=1&show_categories=1&show_featured_image=1&show_content=1&post-page-break=on&columns=1&font-size=normal&image-size=medium&links=include&rendering-wait=10&print-my-blog=1&format=pdf&pmb-post=123

    Notice the very end there it says &pmb-post=123. Replace “123” with the actual ID of the post you want. One easy way to find the post’s ID is to edit the post, and then look at the URL. It will look something like https://www.aktive-buergerschaft.de/wp-admin/post.php?post=123&action=edit. The number after post= is the post’s ID.

    The URL for an eBook is almost the same. It would look like

    https://www.aktive-buergerschaft.de/?post-type=post&include-private-posts=1&show_site_title=1&show_site_tagline=1&show_site_url=1&show_date_printed=1&show_title=1&show_date=1&show_categories=1&show_featured_image=1&show_content=1&post-page-break=on&columns=1&font-size=normal&image-size=medium&links=include&rendering-wait=10&print-my-blog=1&format=ebook&pmb-post=123

    (Notice the value after format= changed from pdf to ebook, but it’s otherwise the same URL.)

    Are you using WordPress block editor (Gutenberg, added in 5.0)? If so, you could create a button block and use one of the above URLs for its URL.

    Does that all make sense?

    Plugin Author Michael Nelson

    (@mnelson4)

    Hmmm… I’m guessing those instructions may have been too intimidating.

    I could add a feature down the road for selecting specific formats on specific posts. Can you explain your situation @aktivbuerger? Eg why do you only want to have a print u button on one page? Similarly, why only a PDF button on one page and an eBook button on another?

    Thread Starter aktivbuerger

    (@aktivbuerger)

    Hi Michael,

    so sorry for being late.
    I had so much different work to do that I wasn’t able to test your suggestions so far, but I understand the principle. Thank you for your great help and support.

    Bye, Regina.

    Plugin Author Michael Nelson

    (@mnelson4)

    No worries! Thanks for reaching out. Hopefully I’ll eventually be able to make this process simpler. I’ll update this thread when that happens, but in case it’s automatically closed, I’ve also made a GitHub issue: https://github.com/mnelson4/printmyblog/issues/55

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to print only one page?’ is closed to new replies.