Giter VIP home page Giter VIP logo

dynamic-conditions's People

Contributors

crazypsycho avatar enoray avatar heywin avatar hterhoeven avatar jeffplo avatar mheavrin avatar ramiy avatar secretprotonium avatar shennemann-rto avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dynamic-conditions's Issues

Bug using the popup in elementor -

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...

Compare by Raw value

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?

Fields in ACF groups / repeaters not visible

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

  • php formulas?
  • any conditional boolean logic?
  • maybe with shortcodes and boolean logic and formula?
  • or any other approach to make this feature work

any hint here?

Not Recognizing Pagination URLs in Acrhives

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/:

  • /blog/page/2/
  • /category/credit/page/2/

But it only recognizes

  • /blog/
  • /category/credit/

Would be really helpful if it could see the extra part of the URL.

Add "context" option to the Number Posts Dynamic Tag -- i.e. Current, Child, Parent

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

$posts = get_posts( [
'category' => implode( ',', $settings['category'] ),
'post_type' => empty( $settings['posttypes'] ) ? 'any' : $settings['posttypes'],
'numberposts' => -1,
'posts_per_page' => -1,
'fields' => 'ids',
] );

If context is:

  • Current Post (default): Leave the query as-is -- no extra parameters on query
  • Child: Add 'child_of' => get_the_ID(), to the query
  • Parent: Add 'parent' => get_the_ID(), to the query
  • Siblings: Add 'child_of' => wp_get_post_parent_id(), to the query

Ajax support

Does 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?

Show posts (events) based on todays date or greater?

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!

in Array hiding parent page

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:

Screenshot 2020-04-28 09 52 37

It then applies the condition to the parent page too i.e. example.com/volunteer as you can see here:

Screenshot-2020-04-28-09 36 52

Is this intentional behaviour? How can we apply an array to the child page only?

Thanks in advance.

Date comparision issue

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.

crash wordpress with version 1.4

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

Last update broke WP

Hey guys, last update took my website down.
Here is the error message:

Error Details

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.

Recoverable fatal error: wp-includes/kses.php on line 1592

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

image

PHP Fatal error: Uncaught TypeError: explode(): Argument #2 ($string) must be of type string

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

Conflict with another plugin display long values instead of "date" fields.

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

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.

ie:
image

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.

Not working with Elementor 3.8/Jet Engine Listing Grid

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.

When to expect update?

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?

Custom Taxonomies not available for Number Posts

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.

Screenshot 2023-12-26 at 16 32 53

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.

Multiple conditions?

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".

Feature Request: Hover reveal condition for content

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?

Set dynamic condition based on whether posts are returned or not

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.
image

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.

image

Cannot use dynamic condition with ACF Gallery Field

It seems I cannot use the Dynamic Condition correctly on ACF Gallery Field’s, even though it is listed in the tags.

  • I cannot set an element to hide IF the Gallery Field = empty. It will always hide no matter what.
  • I cannot set an element to show IF the Gallery Field != empty. It will always hide no matter what.
  • I cannot set an element to hide IF the Gallery Field contains less than X images with the ‘Less Than’ operator. It will always hide.
  • I cannot set an element to show IF the Gallery Field contains more than X images with the ‘Greater Than’ operator. It will always hide.

Basicly the conclusion is that this plugin is not compatible with the Gallery Field.
Is this something that can be fixed?

Multiple conditions

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.

ACF fields not showing up

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!

Compare with todays date

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

WP_User->id is deprecated

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.

Hide a whole div based on device

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!

i18n: move the German to translate.wordpress.org

The PO/MO files for the German translations should be moved to translate.wordpress.org


How to do this?

  1. Visit: https://translate.wordpress.org/projects/wp-plugins/dynamicconditions/

  2. Select the "German" language.

  3. Select the "Development (trunk)" project.

  4. Scroll to the footer and click the "Import Translations".

gt


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).

PHP 8 and more?

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!

Show element only if current post has children

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?

Compare Custom Post Type Date field with current date

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

Messed up when shown

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.

The Widget is not Completely Hidden, Elementor Wrapper is Still There

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?

Content Tag not working as expected

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!

Display a widget on certain archive pages

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.

Container compatibility

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.

Elementor Icon List Bug

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

Doesn't work using URL condition?

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

Compare using dyanamic values

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?

ACF link

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.