• Resolved ajayp86

    (@ajayp86)


    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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Baden

    (@baden03)

    Hello, thanks. Yes, you would simply need to include the shortcode in your theme by using do_shortcode. If you need further assistance, please include a link to the site in question.

    Thread Starter ajayp86

    (@ajayp86)

    Yes I would need further assistance on that.
    The link is:
    http://mncyn.dataheads.ca

    Currently I have some pages set manually to [print-me title=”Print this page” target=”body”]

    Plugin Author Baden

    (@baden03)

    Step 1. You will want to understand WordPress’ 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.