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

    (@meitar)

    This isn’t something you can do with shortcodes, and anyway it isn’t something specific to this plugin. You should probably ask this question on the general “how to” forum, where you’re more likely to get help.

    Thread Starter calman6

    (@calman6)

    Thank you for the reply, I ended up using the ‘Insert PHP’ plugin and then the following in the post:

    [insert_php]
    $domain = htmlspecialchars($_GET["domain"]);
    echo str_replace('$', '\$', do_shortcode('[gdoc key="https://docs.google.com/spreadsheets/......" use_cache="no" query="select * where A = \''.$domain.'\'"]'));
    [/insert_php]

    Thank you very much for Inline Google Spreadsheet Viewer, very useful plugin!

    Plugin Author Meitar

    (@meitar)

    If that’s all you were trying to do then you should have a second look at this plugin’s documentation, specifically the gdoc_query filter hook, for a much safer way to do that. An example.

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

The topic ‘Nesting another shortcode inside’ is closed to new replies.