• Hello,
    I am using another third party plugin to allow php code on a wordpress post.

    I am attempting to echo,

    <?php

    $var1 = do_shortcode(“[cfdb-value form=’App 1′ show=’dynamichidden-871′ filter=”Submitted Login=$user_login”]”);

    echo $var1;

    ?>

    This will echo a value when there is no filter in the cfdb shortcode.
    When I add a filter ie. “filter=’Submitted Login=$user_login'” it no longer echos a value.

    Will work, [cfdb-value form=”your-form” show=”field1″ ]
    Will not work [cfdb-value form=”your-form” show=”field1″ filter=”Submitted Login=$user_login”]

    Side note: If I add the code to a file and upload it ftp, then access the file via the url, the correct value will be given. With the filter set to a specific user, or when there is no filter.

    I’m not sure if there is a workaround to get the value of a column, limit “1”, that is based on the user’s login.

    https://wordpress.org/plugins/contact-form-7-to-database-extension/

Viewing 1 replies (of 1 total)
  • Plugin Author Michael Simpson

    (@msimpson)

    When you post code, please format it using the “code” button.

    Syntax error: You need to escape double quotes inside the string being passed to do_shortcode().

Viewing 1 replies (of 1 total)
  • The topic ‘Filter not working correctly’ is closed to new replies.