Not working since Malware attack.
-
We were using this bit of code in our template, which worked perfectly until somehow, the files in the plugin were mostly deleted. I attempted to download and re-upload but this code no longer works. Can you explain maybe why?
<h3><a href="/events/" style="color:#3A250E; text-decoration: none;">WHAT’S HAPPENING</a></h3> <section class="box"> <?php $args = array('post_type' => 'tribe_events','post_status'=>'publish','showposts'=>4,'orderby' => 'event-date','order'=>'ASC','eventDisplay'=>'upcoming');?> <?php query_posts($args); ?> <?php while ( have_posts() ) : the_post(); ?> <h4><a href="<?php echo the_permalink();?>"><?php the_title(); ?></a></h4> <?php $eventsatrtdate = tribe_get_start_date($post->ID); $eventenddate = tribe_get_end_date($post->ID); ?> <span><?php echo $eventsatrtdate; ?></span> <p><?php $text = get_the_content($post->ID); echo substr($text,0,299);?><a href="<?php echo the_permalink();?>"> Read more...</a></p> <?php endwhile; ?> </section>
Thank you!
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Not working since Malware attack.’ is closed to new replies.