rto-websites / dynamic-conditions Goto Github PK
View Code? Open in Web Editor NEWA simple plugin to show/hide elementor-widgets based on dynamic tags
A simple plugin to show/hide elementor-widgets based on dynamic tags
Hello Great plugin... but i having a bug using the popup in elementor
can't load it only in safe mode because the "the_content" is missing for some reason...
but in the safe mode i can't see the conditions...
I am using JetEngine's Query Builder and I tried adding a condition to show/hide section based on the number of query results however it does not work properly.
This is the debug content:
DynamicTag-Tag:jet-query-count
DynamicTag-Key:
DynamicTag-Value:0
DynamicTag-Value-Raw:0
Check-Value:1
Check-Value2:
Condition-Type:default
Condition:Hide if less
Condition met:no
It appears DynamicConditions is comparing the Check-Value to DynamicTag-Value. Is there a way to force the condition to be checked against DynamicTag-Value-Raw instead using filters or changing some plugin setting I seem no to see anywhere?
I am not sure where to look for, but for the dynamic conditions it would be required to have the option to use ACF groups (and maybe if possible ACF repeater fields) for the dynamic conditions.
Right now if you make a bit UX friendly custom field data design, you cannot use ACF groups at all.
If not possible via dynamic conditions UI, maybe there is a possiblity to use
any hint here?
Not sure if this is a feature request or a bug. But when I tell it to check the Archive URL as a condition it does not recognize any of the pagination parts.
I want to filter on /page/:
But it only recognizes
Would be really helpful if it could see the extra part of the URL.
The Number Posts dynamic tag will only return results in context to the current post.
Having counts of child posts, or parent posts, or siblings' posts would also be useful for conditions.
The conditions would be adjusted
dynamic-conditions/trunk/Lib/DynamicTags/NumberPostsTag.php
Lines 79 to 85 in 28289be
If context is:
'child_of' => get_the_ID(),
to the query'parent' => get_the_ID(),
to the query'child_of' => wp_get_post_parent_id(),
to the queryDoes it support ajax?
I wanted to hide facetwp results when there are no filters activated, or then a specific filter is not used.
I would create a custom dynamic tag that tells if there are active filters, but the filters use ajax, so would visibility also get called and hide/show the element without a page reload?
Hi,
Love this plugin, makes elementor almost complete.. Is it possible to filter posts with a custom date field (e.g. start date event) only with date today and greater then today? And if yes, how to do that?
Thank you!
Hi, we're seeing an issue with in array
hiding the parent page when adding the child page to the array. For example: if we apply a condition to hide a widget based on Post URL
and add example.com/volunteer/apply
in the array box like so:
It then applies the condition to the parent page too i.e. example.com/volunteer
as you can see here:
Is this intentional behaviour? How can we apply an array to the child page only?
Thanks in advance.
Asking this question here since it seems that the Wordpress forum has been abandoned.
I'm having trouble with hiding something based on a date condition.
I have configured it so that it should hide a block if the date is greater than the current date: https://share.getcloudapp.com/Wnuybp2K -- however it is not doing it.
The debug info shows both dates: https://share.getcloudapp.com/bLuKjZXZ
Should it not be hiding it if the date is greater than 3-22-22?
Any help would be appreciated, thanks.
Cannot use plugin 1.4 because serious problems.
Een fout van het type E_ERROR werd veroorzaakt op regelnummer 69 van het bestand /home/deb50017n2/domains/hervormdaalsmeer.nl/public_html/wp-content/plugins/dynamicconditions/dynamic-conditions.php. Foutmelding: Uncaught Error: Class 'DynamicConditions\Lib\DynamicConditions' not found in /home/deb50017n2/domains/hervormdaalsmeer.nl/public_html/wp-content/plugins/dynamicconditions/dynamic-conditions.php:69
Stack trace:
#0 /home/deb50017n2/domains/hervormdaalsmeer.nl/public_html/wp-settings.php(362): include_once()
#1 /home/deb50017n2/domains/hervormdaalsmeer.nl/public_html/wp-config.php(91): require_once('/home/deb50017n...')
#2 /home/deb50017n2/domains/hervormdaalsmeer.nl/public_html/wp-load.php(37): require_once('/home/deb50017n...')
#3 /home/deb50017n2/domains/hervormdaalsmeer.nl/public_html/wp-admin/admin-ajax.php(22): require_once('/home/deb50017n...')
#4 {main}
thrown
Hey guys, last update took my website down.
Here is the error message:
An error of type E_PARSE was caused in line 145 of the file /home/XXXXXX/public_html/yyyyyyy/wp-content/plugins/dynamicconditions/public/DynamicConditionsPublic.php. Error message: syntax error, unexpected ':', expecting ';' or '{'
edit: context:
Wordpress 5.2 with Elementor pro and a few other plugins.
Hi,
I"m using Elementor, ElementorPro, ElementorExtra, JetEngine, JetElement.
If im running all theses Elementor plugin without "DynamicConditions" all works but when i activate your plugin, there is the error i got. Blank page with this
Recoverable fatal error: Object of class WP_Error could not be converted to string in [PATH]/wp-includes/kses.php on line 1592
How does it look like with this plugin?
Hello,
My hosting service recently updated the PHP version to 7.4 and I started having some errors with Dynamic Conditions.
One of them is this PHP fatal error which happens any time I try to update a page through the elementor editor.
I've seen this error being referenced in some forums but without any answer.
Is this a known error? And is there anything I can do to fix it?
Thank you very much!
[21-Mar-2022 09:03:09 UTC] PHP Fatal error: Uncaught TypeError: explode(): Argument #2 ($string) must be of type string, array given in /home1/planetho/public_html/cmuportugal/wp-content/plugins/dynamicconditions/Public/DynamicConditionsPublic.php:198
Stack trace:
#0 /home1/planetho/public_html/cmuportugal/wp-content/plugins/dynamicconditions/Public/DynamicConditionsPublic.php(198): explode(' name="', Array)
#1 /home1/planetho/public_html/cmuportugal/wp-content/plugins/dynamicconditions/Public/DynamicConditionsPublic.php(147): DynamicConditions\Pub\DynamicConditionsPublic->getDynamicTagData('850980a')
#2 /home1/planetho/public_html/cmuportugal/wp-content/plugins/dynamicconditions/Public/DynamicConditionsPublic.php(311): DynamicConditions\Pub\DynamicConditionsPublic->getElementSettings(Object(Elementor\Widget_Spacer))
#3 /home1/planetho/public_html/cmuportugal/wp-includes/class-wp-hook.php(303): DynamicConditions\Pub\DynamicConditionsPublic->filterSectionContentBefore(Object(Elementor\Widget_Spacer))
#4 /home1/planetho/public_html/cmuportugal/wp-includes/class-wp-hook.php(327): WP_Hook->apply_filters(NULL, Array)
#5 /home1/planetho/public_html/cmuportugal/wp-includes/plugin.php(470): WP_Hook->do_action(Array)
#6 /home1/planetho/public_html/cmuportugal/wp-content/plugins/elementor/includes/base/element-base.php(438): do_action('elementor/front...', Object(Elementor\Widget_Spacer))
#7 /home1/planetho/public_html/cmuportugal/wp-content/plugins/elementor/includes/base/element-base.php(741): Elementor\Element_Base->print_element()
#8 /home1/planetho/public_html/cmuportugal/wp-content/plugins/elementor/includes/base/element-base.php(447): Elementor\Element_Base->print_content()
#9 /home1/planetho/public_html/cmuportugal/wp-content/plugins/elementor/includes/base/element-base.php(741): Elementor\Element_Base->print_element()
#10 /home1/planetho/public_html/cmuportugal/wp-content/plugins/elementor/includes/base/element-base.php(447): Elementor\Element_Base->print_content()
#11 /home1/planetho/public_html/cmuportugal/wp-content/plugins/elementor/includes/base/element-base.php(741): Elementor\Element_Base->print_element()
#12 /home1/planetho/public_html/cmuportugal/wp-content/plugins/elementor/includes/base/element-base.php(447): Elementor\Element_Base->print_content()
#13 /home1/planetho/public_html/cmuportugal/wp-content/plugins/elementor/includes/base/element-base.php(741): Elementor\Element_Base->print_element()
#14 /home1/planetho/public_html/cmuportugal/wp-content/plugins/elementor/includes/base/element-base.php(447): Elementor\Element_Base->print_content()
#15 /home1/planetho/public_html/cmuportugal/wp-content/plugins/elementor/core/base/document.php(1529): Elementor\Element_Base->print_element()
#16 /home1/planetho/public_html/cmuportugal/wp-content/plugins/elementor/core/base/document.php(1002): Elementor\Core\Base\Document->print_elements(Array)
#17 /home1/planetho/public_html/cmuportugal/wp-content/plugins/elementor/includes/frontend.php(1092): Elementor\Core\Base\Document->print_elements_with_wrapper(Array)
#18 /home1/planetho/public_html/cmuportugal/wp-content/plugins/elementor/includes/frontend.php(1006): Elementor\Frontend->get_builder_content(37276)
#19 /home1/planetho/public_html/cmuportugal/wp-includes/class-wp-hook.php(303): Elementor\Frontend->apply_builder_in_content('<h1>BEE2WasteCr...')
#20 /home1/planetho/public_html/cmuportugal/wp-includes/plugin.php(189): WP_Hook->apply_filters('<h1>BEE2WasteCr...', Array)
#21 /home1/planetho/public_html/cmuportugal/wp-includes/post-template.php(253): apply_filters('the_content', '<h1>BEE2WasteCr...')
#22 /home1/planetho/public_html/cmuportugal/wp-content/plugins/elementor/modules/page-templates/module.php(190): the_content()
#23 [internal function]: Elementor\Modules\PageTemplates\Module->print_callback()
#24 /home1/planetho/public_html/cmuportugal/wp-content/plugins/elementor/modules/page-templates/module.php(207): call_user_func(Array)
#25 /home1/planetho/public_html/cmuportugal/wp-content/plugins/elementor/modules/page-templates/templates/header-footer.php(19): Elementor\Modules\PageTemplates\Module->print_content()
#26 /home1/planetho/public_html/cmuportugal/wp-includes/template-loader.php(106): include('/home1/planetho...')
#27 /home1/planetho/public_html/cmuportugal/wp-blog-header.php(19): require_once('/home1/planetho...')
#28 /home1/planetho/public_html/cmuportugal/index.php(17): require('/home1/planetho...')
#29 {main}
thrown in /home1/planetho/public_html/cmuportugal/wp-content/plugins/dynamicconditions/Public/DynamicConditionsPublic.php on line 198
Last update affected custom cards created with "ele-custom-skin" (https://www.eletemplator.com/ele-custom-skin/)
When the dynamic-conditions plugin is active, the date fields shown in custom cards are displayed as long values, not date format.
This is affecting pages/archives even if no dynamic condition is set for the field.
Disabling the dynamic-conditions plugin makes the field be parsed correctly as date instead of long value.
please look at the date fields on the top of the cards shown in the figure below.
Expected (and previous to plugin update):
https://www.dropbox.com/s/m4d2op1dnn956j3/Screenshot%202019-03-19%2011.49.48.png?dl=0
Shown (broken):
https://www.dropbox.com/s/vi8j8hu59ktpouf/Screenshot%202019-03-19%2011.50.28.png?dl=0
Different CPT with same custom fields names are not compared correctly. Only field name is taken in account, no matter with CPT it is attached to.
1,2,3 are from different CPT, but filed name is the same for all of them. Condition ( show when field FROM specific CPT is = something ) is meet only for one of them, rest should be hidden.
I use Dynamic Conditions in a Crocoblock Jet Engine Listing Grid widget. After the Update to Elementor 3.8 it stops working and does not show the content anymore. Is there a general problem regarding Elementor 3.8 or only in combination with the Listing Grid? Thank you for your advice.
Hi its a great plugin when its update is coming?
OR some someone please suggest the updated version of this plugin or update it now?
I noticed i'm not able to use my custom taxonomies for the "Number Posts" dynamic tag. I can select the custom post but the "Category" doesn't show nay of my custom taxonomies.
For example, I have a "News" custom post type with a custom taxonomy that contains "Press Releases" and want to be able to hide a button based on the number of post in that taxonomy.
Such a great plugin, thankyou! But what if I need to create a condition based on multiple tags? For example, I want the condition to be "show if Tag A is not empty and Tag B is greater than zero".
I would like to use the Elementor plugin for framed content from another website like a Google Sheet. I don't wanna hide it entirely from visitors but only allow subscribers to access its content in full.
So what I wish to do is activate a "hover reveal" function for guests that can only see a tiny bit of the iFrame content that they hover over with the cursor or finger so that they can check that the content is there which makes a purchase much more trustworthy knowing the content exists for real and just needs to be unlocked.
Are you interested in implementing this functionality?
I have some custom Query ID's which are used to display posts.
I would like to dynamically hide a section based on whether that Query ID returned any posts or not.
There is multiple of these queries per page though, so the filtering would need to be able to specify the Query ID and know to only check the results of that query.
I imagine an extension to this tag would be the most effective.
It seems I cannot use the Dynamic Condition correctly on ACF Gallery Field’s, even though it is listed in the tags.
Basicly the conclusion is that this plugin is not compatible with the Gallery Field.
Is this something that can be fixed?
HI,
is it possible to make use of multiple conditions maybe using repeater fields? That would be really awesome.
Thanks for all the good work you did.
I am using ACF to create forms so that certain fields only appear if particular conditions are met, but I cannot get these fields to show up ... this way clients only end up populating the required fields as they add new content to their CPTs.
Is this because Elementor doesn't support field groups? Is this something that could be supported in the future?
I was wondering if there is a way of having a ACF field that allows us to specify which field in particular we are looking for results in by typing in the ACF field name (e.g my_custom_url) and then specifying the type of that field (url)?
Thanks in advance!
I am trying to automate a section and to do so need to compare the date set in an acf custom field with the current date-time (if the event is in the future it will display 'future events' and hide 'past events', otherwise it will display 'past event' and hide 'future events').
Not quite sure how to get the date selector to automatically take todays date/datetime, or is this not currently something the dynamic-conditions can do?
Many thanks in advance for this wonderful plugin,
Michael
Hi,
with Dynamic Conditions activated I get 36 rows in my error_log just by visiting wp-admin or any public page.
Thu Mar 12 11:23:00.698430 2020] [php7:notice] [pid 56033] [client 127.0.0.1:58746] PHP Notice: WP_User->id was called with an argument that has been deprecated since version 2.1.0! Use <code>WP_User->ID</code> instead. in /xxx/xxx/web/wp/wp-includes/functions.php on line 4865, referer: http://sitename.whatever/
The error comes from Elementor PRO, modules/dynamic_tags/tags/user-info.php row ~51, in the switch/case for display_name where $type is id where it should be ID.
This does not happen with Dynamic Conditions deactivated.
Running latest versions of everything on PHP7.3.
Hi guys!
Is it possibile to hide/show a whole div based on screen size?
How can I select the current div?
I know I could do it directy with Elementor in "Responsive" but this doesn't hide the code in the DOM
Thank you!
File:
DynamicConditions.php:197
Proof:
https://developers.elementor.com/v3-5-planned-deprecations/
The PO/MO files for the German translations should be moved to translate.wordpress.org
How to do this?
Visit: https://translate.wordpress.org/projects/wp-plugins/dynamicconditions/
Select the "German" language.
Select the "Development (trunk)" project.
Scroll to the footer and click the "Import Translations".
This will help you migrate all your translations the wp.org, making the plugin smaller. Also, this way when you need to update translation strings, you don't need to release new versions just use the translation platform and all the sites using the plugin will be update within 12 hours (when they activate the WP Cron that checks for translations).
Hello. I having problems with PHP 8/8.1/8.2, but 7.4 I don't have problems.
Do you have maintenance plans for PHP versions 8 or later?
I hope so, yes, it's the best add-on of its kind I've found, it's straightforward and doesn't come with meaningless extra features.
Thanks!
Hello,
is there a way to show an element only if current post has children?
I would like to show a menu of child pages only if current post has children.
I created a little shortcode that load child pages
function list_child_pages(){
global $post;
$childpages = wp_list_pages([
'post_type' => $post->post_type,
'echo' => false,
'child_of' => $post->ID,
]);
$list = '<ul>' . $childpages . '</ul>';
return $list;
}
add_shortcode('child_pages', 'list_child_pages' );
I would like to manage the condition with Dynamic Conditions plugin, not via php. Is it possible?
When a dynamic condition is applied on a page, the elementor space element, which can be used to add spaces between elements (
) does not work anymore due to the Dynamic Conditions plugin.Hi.
First of all this plugin is great. When I get more time I will contribute to it. Right now I need to know if it could be made possible to compare a custom date field with current date.
The dynamic source would be the custom field.
The Comparison will be Date, and the compared value would be some way to enter current_date or current_date_time.
So the both values are dynamic.
Right now it is only possible to compare a cusum date field with a fixed date, but having current_date or current_date_time, would make it possible to create new sorts of conditions that are based upon the current date/time.
Thanks for your great work.
Henrik
HI,
is it possible to make use of this plugin in Elementor Forms? That would be really awesome.
Thanks for all the good work you did.
I have a widget that is hidden on tablet and mobile (in Elementor), but shown on desktop, and I used the dynamic conditions plugin to only show it when User ID is empty. When it is shown, it is under the widget above it on the page.
I have the same widget in a sidebar as the top widget, with another widget below it. When the conditional widget is shown, it is directly under the widget that should be behind it. The two widgets end up stacked right on top of each other.
https://hoosplace.dream.press/about
The widget hides just fine for logged in users.
Just installed the plugin and from what I've tried it seems that the widget itself is correctly not output to html (leaving only instead), but the Elementor wrapper is still there
E.G.:
<div data-id="7c5b56b" class="elementor-element elementor-element-7c5b56b elementor-widget elementor-widget-text-editor" data-element_type="text-editor.default">
<div class="elementor-widget-container">
<!-- hidden widget -->
</div>
</div>
Is it possible to hide the wrapper too?
Hey!
We have imported every product on our store to Woocommerce and would like to hide the Description column when there’s no description.
Technically some of our products are not empty because the woocommerce-product-content-tag shows this as value “ ” so we can’t ask it to hide when it’s empty. We tried equal to “ ” but that doesn’t work either.
How would we go about hiding those products? We’ve tried many options but nothing seems to work.
https://www.dropbox.com/s/nxb4ip44iaybwof/tag-wo.png?dl=0
Thanks!
Hi there.
I have a general Archive template in Elementor. I would like a widget to display on only one taxonomy term archive. Is this possible please, and if so how?
Many thanks,
Andrew.
It would be great if the plugin would be compatible with the new Elementor containers. As written on Wordpress forum, otherwise the plugin is no longer usable for a lot of people.
Hey guys!
First, let me thank you for that great plugin.
It works nicely, but i recognized that after
installing, all my icon list widgets became
a "ul" with a dotted list-style-option.
Could you please fix that?
Big Hugs
Chriss
Hello first I would like to thank you for the plugin!
I did some testing, and I would like to hide a page element if the site URL has a parameter. I tried all available options and it doesn't work.
I would like to hide a button if the site URL has ?tipo=mensal
I've checked the list on elementor ui but could not find the header parameters.
Hello, First of all thank you making this awesome plugin.
I have a quick question.
Can we compare the dynamic tag with dynamic values.
For example In a event archive page, I want to show if this event is upcoming, ongoing or past based on the a custom field, event_start_date and event_end_date. For these three conditions, I will have to compare one of those customs fields with today's date. Now you have the options to compare date but not, dynamic date, its just date choosing manually.
So is there any options? I think strtodate can be used, but I dont know the exact syntax that will do in the textbox. Can you please help me to solve this?
Hello,
I set an ELEMENTOR button with ACF link and i want to show this button only if ACF link is not empty.
The problem is that when in your dynamic panel settings i see all my ACF fields but not my ACF link.
Thanks
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.