Forum Replies Created

Viewing 3 replies - 1 through 3 (of 3 total)
  • It comes back. I just logged in to give the same review. This plugin works great for what I need, but the fact that I can’t get rid of the review message is really annoying.

    Thread Starter beyondthelamppost

    (@beyondthelamppost)

    @1naveengiri the only thing that I have touched inside that template is adding the query to:

    <?php $query = new WP_Query( ‘post_type=entries’ ); ?>
    <?php if ( $query->have_posts() ) : ?>
    <?php while ( $query->have_posts() ) : $query->the_post(); ?>
    <?php x_get_view( $stack, ‘content’, get_post_format() ); ?>
    <?php endwhile; ?>
    <?php wp_reset_postdata();?>

    The rest came from the theme itself. I have messaged you on Skype. I’d appreciate your help.

    Thread Starter beyondthelamppost

    (@beyondthelamppost)

    Hi,

    Here is the tag code:

    <?php

    // =============================================================================
    // VIEWS/INTEGRITY/WP-INDEX.PHP
    // —————————————————————————–
    // Index page output for Integrity.
    // =============================================================================

    ?>

    <?php get_header(); ?>

    <div class=”x-container max width offset”>
    <div class=”<?php x_main_content_class(); ?>” role=”main”>

    <?php x_get_view( ‘global’, ‘_tag’ ); ?>

    </div>

    <?php get_sidebar(); ?>

    </div>

    <?php get_footer(); ?>

    And this is the _tag code (that I am editing):

    <?php

    // =============================================================================
    // VIEWS/GLOBAL/_TAG.PHP
    // —————————————————————————–
    // Includes the tag output.
    // =============================================================================

    $stack = x_get_stack();

    if ( is_home() ) :
    $style = x_get_option( ‘x_blog_style’ );
    $cols = x_get_option( ‘x_blog_masonry_columns’ );
    $condition = is_home() && $style == ‘masonry’;
    elseif ( is_archive() ) :
    $style = x_get_option( ‘x_archive_style’ );
    $cols = x_get_option( ‘x_archive_masonry_columns’ );
    $condition = is_archive() && $style == ‘masonry’;
    elseif ( is_search() ) :
    $condition = false;
    endif;

    ?>

    <?php if ( $condition ) : ?>

    <?php x_get_view( ‘global’, ‘_script’, ‘isotope-index’ ); ?>

    <div id=”x-iso-container” class=”x-iso-container x-iso-container-posts cols-<?php echo $cols; ?>”>

    <?php if ( have_posts() ) : ?>
    <?php while ( have_posts() ) : the_post(); ?>
    <?php if ( $stack != ‘ethos’ ) : ?>
    <?php x_get_view( $stack, ‘content’, get_post_format() ); ?>
    <?php else : ?>
    <?php x_ethos_entry_cover( ‘main-content’ ); ?>
    <?php endif; ?>
    <?php endwhile; ?>
    <?php else : ?>
    <?php x_get_view( ‘global’, ‘_content-none’ ); ?>
    <?php endif; ?>

    </div>

    <?php else : ?>

    <?php $query = new WP_Query( ‘post_type=entries’ ); ?>
    <?php if ( $query->have_posts() ) : ?>
    <?php while ( $query->have_posts() ) : $query->the_post(); ?>
    <?php x_get_view( $stack, ‘content’, get_post_format() ); ?>
    <?php endwhile; ?>
    <?php wp_reset_postdata();?>

    <?php else : ?>
    <?php x_get_view( ‘global’, ‘_content-none’ ); ?>
    <?php endif; ?>

    <?php endif; ?>

    <?php pagenavi(); ?>

    I tried using the code you provided, but it’s breaking the site below the header. I’m wondering if it’s because of the div containers and the structure of the theme?

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