Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter coexsystem

    (@coexsystem)

    Hi, thanks this worked and really helped me troubleshoot the problem. I think it was in the syntax of the meta_query:

    'meta_query' => array(
    array(
    'key' => 'wpcf-featured',
    'value' => 2
    )
    )

    Got everything working now. Thanks for your help.
    John

    Thread Starter coexsystem

    (@coexsystem)

    The problem is in the EVENTS section mid page on this site: http://ddp.constructorinteractive.com/
    I have also tried to use ‘<?php echo tribe_events_event_schedule_details() ?>’
    but it is still returning the event start date as today’s date

    Thread Starter coexsystem

    (@coexsystem)

    Yes that is the line of code I have been trying to use.

    <?php
    $args=array(
    'post_type' => 'tribe_events',
    'meta_key' => 'wpcf-featured',
    'meta_value' => '1',
    'posts_per_page' => 3
    
    );
    //EventStartDate
    //EventEndDate
    query_posts($args);
    
    while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
    
    <?php
    //print_r($post);
    
    $sd = tribe_get_start_date($post->ID, false, 'M j, Y');
    $ed = tribe_get_end_date($post->ID, false, 'M j, Y');
    if($ed == $ed){
    // single day event
    $timestamp = strtotime($ed);
    $date = date('F j, Y', $timestamp);
    								  }
    <?php $feat_excerpt = get_post_meta($post->ID, 'wpcf-featured-excerpt', true); ?>
    <div class="swiper-slide">
    <div class="img-container">
    <img class="bg-image" src="<?php print wp_get_attachment_url( get_post_thumbnail_id($id) ); ?>" />
    </div>
    <div class="text-box">
    <div class="date"><?php echo $sd; echo " - ".$ed; ?></div>
    <?php the_title(); ?>
    <p><?php print $feat_excerpt; ?></p>
    <br><a class="readmore" href="<?php the_permalink(); ?>">Read ></a>
    						      		</div>
    </div>
    <?php
    endwhile;
    ?>

    Forum: Fixing WordPress
    In reply to: Date php problems
    Thread Starter coexsystem

    (@coexsystem)

    Ok, I’m using multi-color, but I have been modifying it.

Viewing 4 replies - 1 through 4 (of 4 total)