-3

How do I write this shortcode or any alternative?

echo do_shortcode ('[gviewer file="$att_url"]');

Any suggestions someone?

2
  • 1
    What are you actually trying to do? What does the shortcode do?
    – user319940
    Jun 26, 2014 at 9:43
  • Please stop posting the same question under two different profiles Jun 26, 2014 at 9:45

1 Answer 1

1

You can use below shortcode ..

$att_url  is document path 
<?php echo do_shortcode('[gview file="'.$att_url.'"]');   ?>
0

Not the answer you're looking for? Browse other questions tagged or ask your own question.