Title: Include on every page/post
Last modified: August 21, 2016

---

# Include on every page/post

 *  Resolved [ajayp86](https://wordpress.org/support/users/ajayp86/)
 * (@ajayp86)
 * [12 years, 6 months ago](https://wordpress.org/support/topic/printmatictext/)
 * Hi there, nice plugin. I was wondering is there an easier way to include this
   on every page and blog post? I know there is some sort of code you have to place
   a file, but I don’t know the code or while files and where in the files to put
   them.
 * Please help. Thanks.
 * [http://wordpress.org/plugins/print-o-matic/](http://wordpress.org/plugins/print-o-matic/)

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

 *  Plugin Author [Baden](https://wordpress.org/support/users/baden03/)
 * (@baden03)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/printmatictext/#post-4519461)
 * Hello, thanks. Yes, you would simply need to include the shortcode in your theme
   by using [do_shortcode](http://codex.wordpress.org/Function_Reference/do_shortcode).
   If you need further assistance, please include a link to the site in question.
 *  Thread Starter [ajayp86](https://wordpress.org/support/users/ajayp86/)
 * (@ajayp86)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/printmatictext/#post-4519514)
 * Yes I would need further assistance on that.
    The link is: [http://mncyn.dataheads.ca](http://mncyn.dataheads.ca)
 * Currently I have some pages set manually to [print-me title=”Print this page”
   target=”body”]
 *  Plugin Author [Baden](https://wordpress.org/support/users/baden03/)
 * (@baden03)
 * [12 years, 5 months ago](https://wordpress.org/support/topic/printmatictext/#post-4519518)
 * **Step 1.** You will want to understand WordPress’ [do_shortcode](http://codex.wordpress.org/Function_Reference/do_shortcode)
   function
 * **Step 2. ** You will need to edit your template files and insert:
 *     ```
       <?php echo do_shortcode('[print-me title="Print this page" target="body"]'); ?>
       ```
   
 * Since you are targeting the body, and it’s the same on every page, you could 
   also set up body as your default target in the plugins option page.
 * Since you are targeting the body and want this to be visible on every page, you
   could place this in your header/footer… but this really depends on WHERE you 
   want the print icon to be displayed.
 * If you need further assistance, you might want to first get comfortable with 
   making changes to your theme template files.
 * Good luck!

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

The topic ‘Include on every page/post’ 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

 * [do_shortcode](https://wordpress.org/support/topic-tag/do_shortcode/)
 * [template](https://wordpress.org/support/topic-tag/template/)

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