Hi, I’ve been using this brilliant plugin for years now, and it has always worked well.
Unfortunately, I have suddenly begun to get a critical error on the pages with content visibility rules.
The rest of the site is working fine (ighulme.com) but any page with content rules is broken (example).
If I disable the plugin, the page works fine, and I have tried testing things by removing all other plugins, but I still get the same critical error.
I am using the Divi theme (Version: 4.27.1) on WordPress version 6.61
Any help you could offer would be much appreciated!
Many thanks,
Ian
Causes a critical error on site – when enabled, creates a preview in another tab and browser goes to it every time I try and edit anything in divi.
Error messages:
[Tue Nov 07 18:07:01.707504 2023] [proxy_fcgi:error] [pid 8581:tid 140203805095680] [client 82.17.144.51:0] AH01071: Got error ‘PHP message: PHP Parse error: syntax error, unexpected token “%” in /home/682715.cloudwaysapps.com/buzrtxhjmq/public_html/wp-content/plugins/content-visibility-for-divi-builder/content-visibility-for-divi-builder.php(179) : eval()’d code on line 1’, referer: https://programs.tamjohnston.com/wp-admin/post.php?post=247810&action=edit
[Tue Nov 07 18:08:51.939775 2023] [proxy_fcgi:error] [pid 8581:tid 140204206659328] [client 82.17.144.51:0] AH01071: Got error ‘PHP message: PHP Parse error: syntax error, unexpected token “%” in /home/682715.cloudwaysapps.com/buzrtxhjmq/public_html/wp-content/plugins/content-visibility-for-divi-builder/content-visibility-for-divi-builder.php(179) : eval()’d code on line 1’, referer: https://programs.tamjohnston.com/starter-pack-2/?et_fb=1&et_bfb=1&PageSpeed=off
I’m not overly tech savvy so please be kind!!
]]>I am using this code with your plugin to show Divi modules based on this criteria and it’s working well:
$user_id = wp_get_current_user()->ID; is_subscribed_to_any_memberful_plan( $user_id )
However, when I try to use the “negative” version to show content to a user who does NOT have a plan it doesn’t work:
$user_id = wp_get_current_user()->ID; !is_subscribed_to_any_memberful_plan( $user_id )
Any thoughts on why the second example with the exclamation point would not be working, when the one without exclamation works fine?
]]>Hi,
Thanks for this great plugin. Do you have any plan for supporting PHP 8.x ?
I tried to migrate to that version but I got many errors coming from this plugin.
Thanks
]]>Great plugin, thanks.
However, we are getting this error:
Error Details
=============
An error of type E_PARSE was caused in line 1 of the file /home/perfect5/ojaya.com/rainforest/wp-content/plugins/content-visibility-for-divi-builder/content-visibility-for-divi-builder.php(179) : eval()’d code. Error message: syntax error, unexpected ‘Progress’ (T_STRING)
Also, whenever we upload a Divi saved section in our Library to a new page, it now pauses at 75% and will not finish uploading. This is for larger sections only, smaller ones no problem. But on second attempt it always works. Didn’t have this problem before the plugin.
But our main concern is the above error message.
Thanks for what you do!
]]>I tried hiding a profile field, created by ACF, on the author archive pages, if it was empty. I used:
function_exists(‘get_field’) && get_field(‘linkedin_profile_url’) && get_field(‘linkedin_profile_url’) !== ”
Worked great on one website. It would show the icon/link if the profile field had anything in it and would hide it if it didn’t. I applied the same functionality to the page I supplied, and now the icons won’t show regardless of whether or not the profile fields contain anything. In the example I gave you, the Facebook icon is showing because I took the code out of the Facebook section.
Any ideas?
]]>Hi, I love this plugin – it has been exactly what I’ve been looking for.
However, when I deactivated the plugin and reactivated it, all my visibility settings on all my pages have been lost!
Is this the expected behaviour, or a problem with my setup?
Would you be able to make it possible to retain the visibility settings upon deactivation, please?
Many thanks,
Ian
I need to reset the plugin data. Would you please tell me what database entries should I remove that belong to this plugin?
]]>Hi there,
Thanks for this plugin!
I would like to ask how to display an image April 1, 2022 (1pm) and hides it on April 30, 2022 (1pm).
I check the other questions but the answer only the display date.
Thank you!
]]>The condition does not work if it is in Section. Even a simple condition in the case of ACF:
get_field('gallery') != ''
Works everywhere, including rows, columns, but does not work in Section. Both in the post template and on the page.
This is probably the same error as https://www.ads-software.com/support/topic/wrong-global-post/
]]>I’m trying to only display certain Divi modules dependent on whether a logged in users meta data value exists or not. The particular field is called “subscription”.
The code I have come up with so far is the following:
$user_info = get_userdata(get_current_user_id()); $subscription= the_field(‘subscription’, ‘user_’. get_current_user_id()); $subscription !== ”
I really have no idea what I’m doing so I apologise if the code is way off the mark. I have searched the plugins support forum here and mashed together what I believe to be the best fit code, but clearly I’m wrong!
]]>using version 3.2.1
the standard “beg” notice appears at the top of the WPadmin screens after installing this mod. However, unlike every other mod, this notice never goes away.
If you like what Content Visibility for Divi Builder helps you to do, please take a moment to consider rating it. And don't worry, we won't keep asking once you dismiss this notice. ??
clicking the (X), the Hide Notice, or the Keep Notice Hidden only removed the notice for that page load. The moment you reload the page, or navigate to another admin page, the notice reappears.
]]>I have a simple expression on a couple of elements on this page, but whenever I active the plugin, the page crashes and shows a critical error message. Totally unusable plugin. It used to work and then completely randomly it decided to not work. I changed nothing on the site and one day it just stopped. Nothing i’ve tried has worked. Any ideas?
]]>Hi,
Thanks for this very great plugin.
I noticed a small bug (well, I think it is) :
When you use content visiblity on blue section in Divi Theme Builder, the wrong global $post is used, let me explain :
If I use a function to control visibility of a section in theme builder, the global $post is filled with the theme builder post and not the post itself, neither get_the_post / get_post / global $post_id are working.
The unique way I got the post ID is with get_queried_object_id()
Note that this bug is only on theme builder section, not on theme builder module/row/column.
Is this a bug or I misunderstand something ?
Have a nice day,
Alexandre
How it��s possible to convert a normal wordpress theme page in a divi page, so that I can work in divi style?
Best Regards
Heinz
]]>Hello, I have a client who has a problem that this plugin could potentially solve, but not if the hidden modules still render in the page code. I’ve read reviews, support threads and the plugin description text and can’t deduce whether this plugin simply hides modules via CSS (so that their content is still accessible in source but obscured from the page render) or prevents the module loading entirely. The solution I need really has to be the latter, so could somebody please confirm.
Thanks
When you install this plugin (I’m using the latest version 3.19) with the latest versions of Divi (anything after 4.12) that now allows for editing the Header and Footer Theme Builder templates directly when editing a page, it breaks this functionality and the green “Edit Header Template” and “Edit Footer Template” are gone. When the page is then saved, Divi saves the header and footer with the page so they end up being duplicated. Disabling this plugin solves the problem.
]]>I have a bank of blurbs that I would like to display depending on whether or not a link / post is available.
I can get it to work for ACF fields with get_field(‘architect_notes’)
but what I would like to do is have it check to see if the product page (CPT-UI) is associated with a range (taxonomy), if so then show the blurb, otherwise leave blank.
Any suggestions?
]]>Sounds like just the plugin I need.
However, where do I find the code from some Boolean examples for entering into the Content Visibility field?
My specific case is pretty straightforward: all I want is for a Section/Row/Module to show if the “Dynamic Content” mechanism of Divi’s Theme Builder finds and fills in content from a custom field I defined with Pods. If not, then the Section/Row/Module should just be ignored.
What do I enter in the Content Visibility field (Advanced tab > Visibility)?
Salam n Hola
The Content Visibility Field goes missing for Divi FilterGrid plugin after updating Divi to 4.10.x
I’ve disable all plugins, leaving just CVDB and Divi FilterGrid activated, the field was still missing. It only appeared back when I rollback Divi to 4.9.10.
Divi FilterGrid is from diviplugins.com
InsyaAllah n Thanks
]]>This plugin is great and does exactly what it says.
HOWEVER, it also has an unintended side effect….
When I create a Library layout (row) of buttons with visibility defined by script, the layout-row becomes UNSELECTABLE for addition into pages….
There seems to be a conflict. ??
the moment I disable this plugin, the layout-row becomes selectable again.
in module: is_amazon()
script added to functions.php:
// Divi module visibility
function is_amazon() {
global $post;
$r = false;
if ( function_exists('get_field') ) {
if ( get_field('amazon-link') ) {
if ( !empty(get_field('amazon-link')) ) {
$r = true;
}
}
}
return $r;
}
]]>
I happily left a review for this plugin (as it does exactly what I need!)
However, the notice at the top of admin:
If you like what Content Visibility for Divi Builder helps you to do, please take a moment to consider rating it. And don’t worry, we won’t keep asking once you dismiss this notice. ??
won’t clear. I have clicked the (X), the “keep hidden” and the “hide all notices” — every time the admin page reloads, the notice displays again.
Can someone tell me how to remove or disable the notice?
thanks
]]>Hi, I don��t know if this is possible with this plugin.
I want to create a section in the “My Account” page that will invite users to upload their photo as profile image, or avatar.
But if the user already has a photo uploaded I want that section to be hidden.
Can I accomplish that with this plugin?
Any help will be very welcome, thanks!
]]>Hi guys,
After updating Divi to 4.10.x (here: 4.10.4) the Content Visibility field provided by your plugin (latest version 3.18) is no longer available in Divi Essential modules (latest version 4.4.5). Rolling back Divi to 4.9.10 brings back the field.
Would be great if you could bring it back ??
]]>Can you please take a look into this?
]]>
Hi,
I think the new Divi 4.10 update broke the plugin. Now all sections are shown, no matter if you have set visibility rules for it or not.
Here is an example of one of my sites using the plugin https://i.imgur.com/u12AWgZ.png Each row has a rule based on logged in state and user role, but as you can see all of them are shown now.
Hope this will ever get fixed, or even be seen by the developer.
]]>hi,
I��m using the ACF repeater
repeater name: packages
subfield name is: plan_name
how can I use a function to hide a row if the sub field is empty?
I want to display section date to date.
for example
display on 20d-10m-21y to 25d-11m-21y.
hide before 20d-10m-21y
hide after 25d-11m-21y
I have an issue where, on pages, i cannot edit in text in global sections and i can not remove modules in a global section.
Steps to recreate:
1) Make new page
2) Make Section/Row/Text Module
3) Save Section as Global Module to DIVI Library
4) Save Page
5) Make copy of Text Module and save page
6) Delete copy of Text Module and save page
I have looked at the DB and revision history and there it does look like the Text Module has been removed, but looking at both the DIVI Builder and the live site it is not deleted.
]]>Hello,
WordPress sent me an email “Your site has technical problems”
Error details
==================
An error of type E_PARSE occurred on line 1 of the file /home/veterinariodigital/www/wp-content/plugins/content-visibility-for-divi-builder/content-visibility-for-divi-builder.php(155 ): eval () ‘d code. Error message: syntax error, unexpected ‘&’
I have not touched the code at any time.
What is the problem? Can you review it, please?`
Regards!
]]>