• Resolved mrdon

    (@mrdon)


    I have created a custom attachment.php template for my wordpress site. I added the following code to the template, but I can’t seem to get the print/pdf buttons to show. The buttons are working fine on my standard post and pages.

    <?php do_action( ‘bwsplgns_display_pdf_print_buttons’ ); ?>

    Any ideas?

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author bestwebsoft

    (@bestwebsoft)

    Hi,

    Thank you for contacting us!

    Have you tried to use the shortcode?

    Thread Starter mrdon

    (@mrdon)

    I can add shortcode to the php template itself?

    Plugin Author bestwebsoft

    (@bestwebsoft)

    Hi,

    Please try to add a shortcode to your custom php template and let us know about the result.

    If pdf/print buttons will not display, please provide a link to the page where the problem occurs.

    Thread Starter mrdon

    (@mrdon)

    I got the icons to appear using the following code:

    <?php echo do_shortcode("[bws_pdfprint display=pdf,print]"); ?>

    When I click the PDF or Print button it displays the page Title but not the image on the page. This is my attachment.php page.

    Plugin Author bestwebsoft

    (@bestwebsoft)

    Hi,

    This is my attachment.php page.

    We didn’t get anything. Could you please provide a link to that page?

Viewing 5 replies - 1 through 5 (of 5 total)

The topic ‘Adding buttons to custom template’ is closed to new replies.