Print Button Shortcode
[resolved] How to Use in Template PHP (1 post)

  1. Davidramsey03
    Posted 3 years ago #

    If anyone wants to use this directly in their template PHP code, here's the code:

    <?php echo do_shortcode('[print-button target="div#print_div"]'); ?>

    Just swap out the "div#print_div" with the element you want printed.

    Note: the element must stay in the double quotes here to work properly. ENJOY!


Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Print Button Shortcode
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic