Filter not working correctly
-
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://www.ads-software.com/plugins/contact-form-7-to-database-extension/
- The topic ‘Filter not working correctly’ is closed to new replies.