WordPress.org

Ready to get started?Download WordPress

Forums

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

  1. Davidramsey03
    Member
    Posted 2 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!

    http://wordpress.org/extend/plugins/print-button-shortcode/

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic