• Hello,

    Is there a way to use a shortcode inside the CF7DB shortcodes?

    Something like this:
    [cfdb-table form=”Registration 3GC” search=”[user_email]”] where [user_email] is the e-mail address of the logged in user.

    Or is there maybe an other way to do this?

    Thanks in advance

    • This topic was modified 7 years, 3 months ago by pbrakkee.
Viewing 1 replies (of 1 total)
  • Hi Brakkee,

    A cfdb shortcode in a cfdb shorcode is not possible. For your question I can see two solutions.

    1) use $_GET. This is the easiest way. You use $_GET to transfer the input of a form to a post or page

    [cfdb-table form="List" show="AAA,BBB,CCC" filter="AAA=$_GET(e-mail)"]

    2) Use the “Add Shortcodes Actions And Filters” plugin and create a shortcode and use a cookie. Here nesting shortcodes is allowed.

    setcookie('e-mail',$e-mail,time() + (86400 * 7)); // 86400 = 1 day
    $_COOKIE ['e-mail'] = $e-mail;
    echo do_shortcode( '[cfdb-table form="List" show="AAA,BBB,CCC" filter="AAA=$_COOKIE(e-mail)"]' );

    Success
    en uh … kommie-ut-utreg?

Viewing 1 replies (of 1 total)
  • The topic ‘Shortcode in shortcode’ is closed to new replies.