@ boerup
Well… the theme seems to be fairly well written which is great. Trust me I run into some that I personally would not use.
That said, there is a bug. In many of the theme’s template pages they are doing this:
$wp_query = null;
Very, very, bad… you never mess with global variable $wp_query
, things will break in very unexpected ways.
I commented out (removed) those and theme and Connections work together now. But I think there is still another bug with theme. I’ll try to explain.
They are nullin’ing out that global variable because they are resetting it to run a new query. First, you do not need to do that, second, they are overwriting it which should not be done because that original copy is gone and cannot be restored if needed.
Here’s an example from the footer frontpage.php
file. They are doing this:
<?php $wp_query = null; ?>
<?php $wp_query = new WP_Query( $args ); ?>
<?php if ( $wp_query->have_posts() ) : ?>
<div class="status-title">
<h1><?php _e('Status:', 'wplook'); ?></h1>
</div>
<div id="slider-status" class="flexslider">
<ul class="slides">
<?php while ( $wp_query->have_posts() ) : $wp_query->the_post(); ?>
<li><a href="<?php the_permalink() ?>"><?php the_title() ?> - <?php wplook_get_date(); ?></a></li>
<?php endwhile; wp_reset_postdata(); ?>
</ul>
</div>
<div class="clear"></div>
<?php endif; ?>
It should be done like this:
<?php $new_query = new WP_Query( $args ); ?>
<?php if ( $new_query->have_posts() ) : ?>
<div class="status-title">
<h1><?php _e('Status:', 'wplook'); ?></h1>
</div>
<div id="slider-status" class="flexslider">
<ul class="slides">
<?php while ( $new_query->have_posts() ) : $new_query->the_post(); ?>
<li><a href="<?php the_permalink() ?>"><?php the_title() ?> - <?php wplook_get_date(); ?></a></li>
<?php endwhile; wp_reset_postdata(); ?>
</ul>
</div>
<div class="clear"></div>
<?php endif; ?>
Just like it is shown in the WordPress Codex.
Hope that helps!