• Resolved danamedina

    (@danamedina)


    My key is different for each user, and can be accessed by [wlm_custom update_resp_key].
    I’ve tried the following options, none of them worked:

    [gdoc key= [wlm_custom update_resp_key]]
    [gdoc key= ‘%5Bwlm_custom update_resp_key%5D’]
    [gdoc key= %5Bwlm_custom update_resp_key%5D]

    Only the direct access works:
    [gdoc key= 1i3jnke7Vsp7tmaya7KCoyhlGR0elxiX7ENSs5RW9byU]

    Any suggestions?
    Thanks!

    https://ww.wp.xz.cn/plugins/inline-google-spreadsheet-viewer/

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

    (@meitar)

    I don’t think WordPress supports using the output of a shortcode as the input to a different shortcode. That is, as far as I know, you cannot nest shortcodes like that.

    You’ll need to use some other method for dynamically generating and calling the shortcode. For instance, a custom function in your theme’s functions.php or elsewhere in your theme files can call do_shortcode(), where you can programmatically invoke the shortcode yourself.

    Thread Starter danamedina

    (@danamedina)

    Thanks

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

The topic ‘Accessing key via shortcode (with '[' bracket) doesn't work’ is closed to new replies.