Gregory Janssens
Forum Replies Created
-
thanks @tribalmike i can, but it was only a stupid thing, the admin has deleted woocommerce pages like “cart”, so it was going back home.
i have try different options :
– require users to logged in before buy, don’t change
– create a page for attendee, for thank you, don’t change.no stock moove, no attendee added, nothing, just redirect to homepage with ?provider=tribe_wooticket added to url.
## i deactivate all my plugins, and now it works… ##
so i’m gonna see wich one is creating troubles.
Forum: Fixing WordPress
In reply to: Function to modify slug create a bug in elementor pro templatesok, i think i point the problem !
as said in my last comment, if i deactive this function,
the preview url is ?elementor_library=previewso i suppose that’s where the bug come from.
now need to figure how to fix it !
- This reply was modified 7 years ago by Gregory Janssens.
Forum: Fixing WordPress
In reply to: Function to modify slug create a bug in elementor pro templatesGot an idea ^^
if i look rewrite rules ( with rewrite rules inscpector )
i see this :
elementor_library/(.+?)\.html$ index.php?post_type=elementor_library&name=$matches[1] other
and my preview pages for templates got a double slash ( site.com//preview.html )
and if i manually go to site.com/elementor_library/preview.html i redirected to original url !
so i think there is something that delete this part. But what ?
Forum: Fixing WordPress
In reply to: Function to modify slug create a bug in elementor pro templates@anevins that’s how i identify this function to be in case.
but all lines is variables, so if i deactive them, got php error.If i go to “debug” or “preview” this page, i got a 404. Maybe this info can help ?
- This reply was modified 7 years ago by Gregory Janssens.
Forum: Fixing WordPress
In reply to: Function to modify slug create a bug in elementor pro templatesIf i go to “debug” or “preview” this page, i got a 404. Maybe this info can help ?
Forum: Fixing WordPress
In reply to: Function to modify slug create a bug in elementor pro templatesHello @anevins , thank you to take a look to my problem.
the error is the classic Elementor Error, ” Preview Could Not Be Loaded “.
article & pages works well. it’s only on creating/editing templates.
Forum: Plugins
In reply to: [Modern Events Calendar Lite] nothing workingdésactive le mode debug, tu ne verras plus rien.
Forum: Plugins
In reply to: [Modern Events Calendar Lite] nothing workingPour le message d’erreur, il est lié à ton thème qui ne trouve rien à resortir pour la demande.
pour le calendrier, c’est étrange, si je vais dans “agenda” que je clic sur “7/06”
j’ai bien “boulegan festival” & “caravan serail”, et si je clic dessus dans la colonne de droite, il charge bien l’event ^^
Forum: Plugins
In reply to: [Modern Events Calendar Lite] nothing workingAucun souci de mon côté quand je consulte ton site.
Forum: Plugins
In reply to: [Modern Events Calendar Lite] list upcoming events wp queryOk finded !
i give the code for other users ( it use WPML, so if you don’t, juste take of the “AND wp_icl_translations.language_code=’$lang’ ” from the query.
$startday = date("Y-m-d"); if ( defined( 'ICL_LANGUAGE_CODE' ) ) { $lang = ICL_LANGUAGE_CODE; } $results = $wpdb->get_results( "SELECT * FROM wp_posts, <code>wp_mec_dates</code> AS mecd, wp_icl_translations WHERE wp_posts.ID = mecd.post_id and post_status='publish' AND wp_icl_translations.language_code='$lang' AND dstart>'$startday' and wp_posts.ID = wp_icl_translations.element_id ORDER BY dstart" ); foreach ($results as $event) { echo $event->post_title .'<br />'; }and you can display all the infos you need.
Forum: Plugins
In reply to: [Modern Events Calendar Lite] list upcoming events wp queryHello, i ran a local guide, so i need to be able to run my own query, because i use a custom relation field ( based on acf plugin ) to link pages/posts to CITY.
so i don’t use the location option of MEC, i use this custom field.
like this i can do query like : display all upcoming events in CITY
i want to display this info in sidebar as hyperlink text.
-> 09/06 – Event name 1
-> 10/06 – Event name 2and on front page, i want to show ALL upcoming events, but with my own design.
Forum: Plugins
In reply to: [Modern Events Calendar Lite] list upcoming events wp queryPlease stop set my thread as resolved anytime you add an answear…
I don’t need to add code to your plugin… and it will be stupid, because anytime you update the plugin, my code will be scratch…. o_O !
also, you don’t seem to understand my question…
i just need to know what is the meta key used to DISPLAY NEXT UPCOMING EVENTS…
i just want a list of next events on my homepage, without any widget.
i already got all info, just need to order them!
my code
<?php $args = array( 'post_type'=> 'mec-events', 'orderby' => 'start_date', 'order' => 'ASC', ); $the_query = new WP_Query( $args ); if($the_query->have_posts() ) { while ( $the_query->have_posts() ) { $the_query->the_post(); ?> <li> <?php $image_url = get_the_post_thumbnail_url('','liste-etablissements'); $event_cities = get_field('contact_city',$post->ID); ?> <div class="presta-img-home-events"> <?php if($image_url[0]) { ?> <img src="<?php echo esc_url( $image_url ); ?>" alt="<?php the_title_attribute(); ?>"> <?php } else { ?> <img src="<?php echo get_template_directory_uri() . '/images/placeholder-blog.jpg'; ?>" alt="<?php the_title_attribute(); ?>"> <?php } ?> <div class="presta-img-home-events-overlay"><?php echo $event_date; ?> - <?php if($event_cities) { $cities = 0; $max_cities = 1; foreach($event_cities as $event_city) { $cities++; if($cities > $max_cities) { break; } echo ''. get_the_title( $event_city->ID ) .''; } } ?></div> </div> <div class="featured-content-wrapper"> <h3 class="featured-title"> <a title="<?php the_title_attribute(); ?>" href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h3> <!--<a href="<?php the_permalink(); ?>" class="single_add_to_wishlist" ><?php esc_html_e('Découvrir','BeProvence'); ?><i class="fa fa-heart"></i></a>--> </div><!-- featured content wrapper --> </li> <?php } } ?>- This reply was modified 7 years ago by Gregory Janssens.
Forum: Plugins
In reply to: [Modern Events Calendar Lite] list upcoming events wp querythere is no hook or filters info in docs…
Forum: Plugins
In reply to: [Modern Events Calendar Lite] list upcoming events wp queryHello,
excuse me but this is not CSS or customisation…
this is PHP/MYSQL. I don’t need you to code in my place. Just to share info that will help me develop my tool.
i just need to know ( i have found nothing in documentation ) how i can list upcoming events in a mysql/wp_query.
i tryed with meta_key start_date
but events are not showing by upcoming.
- This reply was modified 7 years ago by Gregory Janssens.