ikki83
Forum Replies Created
-
ok thanks…
another question:can you help me if i want to group recurring events in the Events Widget?
I’m planning to buy the pro version, i need paypal support 🙂i’ve tried a lot of different kind of solutions based on this code, but no one seems to work.
Can you help me?it repeats because i create recurring events, but i just want that n homepage it will be displayed only one post to promote the event.
If i delete the single events that the recurring option creates, i get my target but they will disappear from the events calendar, too,
Please help me…the events repeat in admin area in “Events” section.
ok, i wake up this morning and the problem is repeated automatically: i’ve found again the duplicated post in home page.
To resume i’ve used this code in index.php for the wordpress loop:<?php get_header(); ?> <div class="content-wrapper"> <div class='gdl-page-item'> <div class='sixteen columns'> <?php $loop = new WP_Query( array( 'post_type' => 'event', 'posts_per_page' => 5, )); ?> <?php while ( $loop->have_posts() ) : $loop->the_post(); ?> <?php // added this to be able to use shortcodes and placeholders $EM_Event = em_get_events( array('post_id'=>$post->ID,'recurring'=>1) ); ?> <h4><?php echo $EM_Event->output('#_EVENTLINK'); ?></h4> <?php endwhile; /* End loop */ ?> <?php wp_reset_query(); ?> </div> </div> <div class="clear"></div> </div> <?php get_footer(); ?>and this in funciotns.php:
add_filter( 'pre_get_posts', 'my_get_posts' ); function my_get_posts( $query ) { if ( is_home() && false == $query->query_vars['suppress_filters'] ) $query->set( 'post_type', array( 'post', 'event' ) ); return $query; }I hope you can help me.
[No bumping, thank you.]
solved, i’m very tired today!
how can i modify my code with yours?