• Resolved mcracco

    (@mcracco)


    First time install of Document Viewer for Office and I have a real basic question. I added a document and I see a shortcode is provided. I also see:

    “Copy and paste the PHP code into your template file”

    What template file is this referring to?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author shehabulislam

    (@shehabulislam)

    Hi,

    you can put this code to any php code or hook.

    Thank you

    Thread Starter mcracco

    (@mcracco)

    Thanks for your response. I pasted code into Snippets plugin and activated.

    With Doc Viewer shortcode in page I get “An error occurred” with a “Learn More” link.

    Clicking link it says it cannot reach https://www.office.com/redir.aspx?assetid=HA102724036

    Mind you all of this is on a locally hosted intranet site.

    Thread Starter mcracco

    (@mcracco)

    Your response “you can put this code to any php code or hook.” does not help me.

    I am not a coder so I will need help in layman’s terms. Where specifically does code so I can make plugin work?

    Plugin Author shehabulislam

    (@shehabulislam)

    I am not sure where you want to show the document.

    sample code

    you can use like this

    add_action(‘wp_footer’, function(){
    echo do_shortcode(‘[office_doc id=”725″]’);
    });

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Where is Templates File’ is closed to new replies.