Title: Undefined
Last modified: August 20, 2016

---

# Undefined

 *  Resolved [progrations](https://wordpress.org/support/users/progrations/)
 * (@progrations)
 * [13 years ago](https://wordpress.org/support/topic/undefined-3/)
 * I’m having trouble getting the shortcode [print-me] to work. I’ve tried it on
   a couple different sites and with Chrome and Firefox, but always get the “undefined”
   result.
    I did the basic “add plugin” and installed and activated. This is the
   instance i’m currently trying to get to work: [http://www.activeworkingcredit.com](http://www.activeworkingcredit.com)
 * Thank you!
 * [http://wordpress.org/extend/plugins/print-o-matic/](http://wordpress.org/extend/plugins/print-o-matic/)

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

 *  Plugin Author [Baden](https://wordpress.org/support/users/baden03/)
 * (@baden03)
 * [13 years ago](https://wordpress.org/support/topic/undefined-3/#post-3585253)
 * what shortcode are you using?
    You need to tell the shortcode what element to
   print (in your case the div with an ID of content) by assigning the target attribute
   like so:
 *     ```
       [print-me target="#content"]
       ```
   
 *  Thread Starter [progrations](https://wordpress.org/support/users/progrations/)
 * (@progrations)
 * [13 years ago](https://wordpress.org/support/topic/undefined-3/#post-3585264)
 * Awesome, thank you for your assistance. Works now!
 *  Thread Starter [progrations](https://wordpress.org/support/users/progrations/)
 * (@progrations)
 * [13 years ago](https://wordpress.org/support/topic/undefined-3/#post-3585267)
 * Would you mind one more question?
    I’ve used print-o-matic with the suggestion
   you made above on this page: [http://www.playaulait.com/preschool-prep-registration-2/](http://www.playaulait.com/preschool-prep-registration-2/)
 * It unfortunately includes “like us on facebook” etc… at the bottom of the printed
   page.
 * I assume i need to change the target from “#content” to something else, but i’m
   having a hard time figuring that out.
 * thank you….
 *  Thread Starter [progrations](https://wordpress.org/support/users/progrations/)
 * (@progrations)
 * [13 years ago](https://wordpress.org/support/topic/undefined-3/#post-3585269)
 * I’ve also tried target=”body” but that prints too much of the other items on 
   the page.
 * I just want to print the registration form from the url i referenced above. I’m
   just not sure where to search for other types of variables to try.
 * Thx!
 *  Thread Starter [progrations](https://wordpress.org/support/users/progrations/)
 * (@progrations)
 * [13 years ago](https://wordpress.org/support/topic/undefined-3/#post-3585270)
 *  Plugin Author [Baden](https://wordpress.org/support/users/baden03/)
 * (@baden03)
 * [13 years ago](https://wordpress.org/support/topic/undefined-3/#post-3585336)
 * You have three choices:
    **ID:** Look for id=”your_id” in the element you want
   to print in the source HTML of your page. `target="#your_id"`
 * **CLASS:**
    Look for class=”your_class” in the element you want to print in the
   source HTML of your page. `target=".your_class"`
 * **ELEMENT**
    Look for <your_element>…</your_element> you want to print in the
   source HTML of your page. `target="your_element"`
 * If you provided more detail on exactly what you wanted to print, we could be 
   of further assistance.
 *  [Derpot](https://wordpress.org/support/users/derpot/)
 * (@derpot)
 * [12 years, 11 months ago](https://wordpress.org/support/topic/undefined-3/#post-3585356)
 * Sir Baden, I have a related problem. After clicking on the printer icon, a new
   page is created with all the elements that I wanted to be printed. However, it
   does not automatically open the printer window. How do I resolve this?
 *  Plugin Author [Baden](https://wordpress.org/support/users/baden03/)
 * (@baden03)
 * [12 years, 10 months ago](https://wordpress.org/support/topic/undefined-3/#post-3585366)
 * Derpot, do you have a link for us?

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

The topic ‘Undefined’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/print-o-matic_b2b2b2.svg)
 * [Print-O-Matic](https://wordpress.org/plugins/print-o-matic/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/print-o-matic/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/print-o-matic/)
 * [Active Topics](https://wordpress.org/support/plugin/print-o-matic/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/print-o-matic/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/print-o-matic/reviews/)

## Tags

 * [class](https://wordpress.org/support/topic-tag/class/)
 * [element](https://wordpress.org/support/topic-tag/element/)
 * [id](https://wordpress.org/support/topic-tag/id/)
 * [shortcode](https://wordpress.org/support/topic-tag/shortcode/)
 * [undefined](https://wordpress.org/support/topic-tag/undefined/)

 * 8 replies
 * 3 participants
 * Last reply from: [Baden](https://wordpress.org/support/users/baden03/)
 * Last activity: [12 years, 10 months ago](https://wordpress.org/support/topic/undefined-3/#post-3585366)
 * Status: resolved