• Resolved belljr56

    (@belljr56)


    Is there a way to make it so the print and PDF buttons only appear at the top of a given section on the page and when clicked will print or create a PDF of the entire loop of posts?

    I need users to be able to either print or save all of our FAQs but I can not figure out how to get this plugin to do that. So far all I have been able to do is get it to show the buttons on every post and when you click them it only wants to use that one post.

    I am using a custom post type and it is on a custom template page if this matters.

    Thanks for any help you can provide.

    https://wordpress.org/plugins/pdf-print/

Viewing 1 replies (of 1 total)
  • Plugin Author bestwebsoft

    (@bestwebsoft)

    Hi,

    Yes, it is possible, it is necessary to make changes to the code of the theme that generates these pages:

    <?php if ( function_exists( 'pdfprnt_show_buttons_for_custom_post_type' ) ) echo pdfprnt_show_buttons_for_custom_post_type( $custom_query ); ?>

    For more information on the syntax for assigning parameters to function see here – http://codex.wordpress.org/Class_Reference/WP_Query#Parameters

    For example:` <?php if ( function_exists( ‘pdfprnt_show_buttons_for_custom_post_type’ ) ) echo pdfprnt_show_buttons_for_custom_post_type( ‘post_type=gallery&orderby=post_date’ ); ?>
    or
    <?php if ( function_exists( ‘pdfprnt_show_buttons_for_custom_post_type’ ) ) echo pdfprnt_show_buttons_for_custom_post_type( array( ‘post_type’ => ‘gallery’, ‘orderby’ => ‘post_date’ ) ); ?>`

    Please go to the plugin settings page and check if checkbox to display pdf/print buttons for custom pages (the Show for custom posts block) is marked.

    Sincerely,
    BestWebSoft Support Team

Viewing 1 replies (of 1 total)
  • The topic ‘Print whole loop not just one post’ is closed to new replies.