Hi @beachmat,
Sorry to hear you are having trouble with the plugin! Could you please share the error messages from your error log? You can email them to me via [email protected] or post them here.
Thanks!
Also, which version of Divi are you using? Is it the theme or the builder plugin?
I’m using the latest Divi 5 theme beta.
The debug log says
PHP Parse error: syntax error, unexpected token “;” in /home/eyredesi/staging-z.eyre-design.co.uk/wp-content/plugins/content-visibility-for-divi-builder/includes/plugin.class.php(233) : eval()’d code on line 1
That would indicate an error in the visibility field code, by trying to execute multiple statements separated by semicolons. If you need multiple statements, you should define a custom function in your theme’s functions.php that returns a boolean and call it in the visibility field.
Hello @beachmat,
After further digging and the bug report by @ighulme, we have released a fix that may apply to this. Version 5.01 now strips leading and trailing whitespace from expressions and skips processing if there is nothing left in the field.
Thank you for your patience and for using our plugin!