Events not appearing in main blog loop – please help!

Home Forums Welcome! Pre-Sales Questions Events not appearing in main blog loop – please help!

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #1002942
    Simon Weber
    Guest

    This is the code for the div, there show my normal “posts” at the front site.
    but what schuld i change, if i also want the events to show up? please help me! ( i have checked the box (Include events in main blog loop) but nothing happpen.

    <?php

    $cat = ”;

    if ( ot_get_option( ‘home_news_category’ ) ) :

    $cat = ot_get_option( ‘home_news_category’ );

    endif;

    $the_query = new WP_Query(array(
    ‘post_type’ => ‘post’,
    ‘posts_per_page’ => 4,
    ‘offset’ => 0,
    ‘cat’ => $cat
    ));

    if ( $the_query->have_posts() ) : ?>

    <!–<div class=”thumbnails”>–>

    <?php while ( $the_query->have_posts() ) : $the_query->the_post(); ?>
    <div <?php post_class( ‘span3’ ); ?>>
    <?php if ( has_post_thumbnail() ) { // the current post has a thumbnail ?>
    <div class=”img”>
    “><?php the_post_thumbnail( ‘portfolio’, array( ‘class’ => ” ) );?>
    <span class=”img-hover”><i class=”icon-circle-arrow-right”></i></span>
    </div>
    <?php } ?>
    <div class=”caption”>
    <h4><?php if (is_sticky()) { echo ‘<i class=”icon-pushpin sticky” title=”Sticky”></i> ‘;}?>”><?php the_title(); ?></h4>
    <?php echo spritz_posted_on(); ?>
    </div>
    </div>
    <?php endwhile;
    wp_reset_postdata(); ?>
    <!–</div>–>

    <?php endif; ?>
    <?php wp_cache_flush(); ?>

    #1003100
    Brian
    Member

    Hi,

    Thanks for using the Events Calendar.

    Here on the pre-sales forum, I’m afraid we do not provide technical support. I would ask that you take any technical support questions across to our wordpress.org forum – our staff scan it periodically and other community members may also be able to help out.

    The Events Calendar

    Thanks again!

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘Events not appearing in main blog loop – please help!’ is closed to new replies.