WordPress.org

Forums

Google Doc Embedder
Alter to be used in attachment page? (2 posts)

  1. chulvlu
    Member
    Posted 2 years ago #

    Hi,

    How could I alter the plugin so it would work on an attachment page, for instance? It works on posts but not in templates...

    Thanks in advance

    http://wordpress.org/extend/plugins/google-document-embedder/

  2. k3davis
    Member
    Plugin Author

    Posted 2 years ago #

    The plugin works in templates if you use the do_shortcode command.

    // Use shortcode in a PHP file (outside the post editor).
    echo do_shortcode('[gview file="blah.pdf"]');

    Are you looking for something else? Can you clarify what it is you're looking for?

    Thanks.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Google Doc Embedder
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.