• I can’t quite figure out why it is doing this, but I thought I would post the issue here and see if you or anyone here could assist.
    Webpage: https://www.bamidbartherapy.org/our-programs/
    Also here: https://www.bamidbartherapy.org/calendar/

    Dynamic Condition Settings
    Dynamic Tag: ACF (Start Date)
    Show/Hide: Hide when condition
    Condition: Less than
    Compare Type: String to time
    Conditional value: now

    Custom Sort Order: I also have a custom query snippet running to sort by the start_date.

    add_action( ‘elementor/query/course_sorted_by_date_desc’, function( $query ) {
    $query->set( ‘meta_key’, ‘start-date’ );
    $query->set( ‘orderby’, ‘meta_value_num’ );
    $query->set( ‘order’, ‘DESC’ );
    });

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter gravnetic

    (@gravnetic)

    Bump…

    Plugin Author crazypsycho

    (@crazypsycho)

    Hello @gravnetic

    I see the problem. It only remove the section of the course, but not the section and link around it. This is because the conditions only works in the inside of the loop.
    I think you need some custom javascript to hide the rest.

    Like this

    jQuery('.ecs-posts .courses .elementor-section-wrap').each(function(index, element) {
    	if (element.innerHTML.indexOf('<!-- hidden section') !== -1) {
    		jQuery(element).closest('article').css({display: 'none'});
    	} 
    });

    We will think how to implement this feature in our plugin.

    Thread Starter gravnetic

    (@gravnetic)

    I really appreciate you considering this! Please send a message if you update the plugin and I’ll add the above JQuery.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Dynamic content includes hidden posts outside the condition parameter.’ is closed to new replies.