How can we help?

If you are looking for support for our PokaTheme, this is the place!

Home Forums PokaTheme support Change loop file for count news

  • This topic has 2 replies, 2 voices, and was last updated 1 year ago by admin.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #17705
    spielo
    Participant

    Hi, how can i change the loop file for count 3 post not only two? i use old pokatheme version two.

    File look like thie, count two at the moment but i need three in one line with small class
    _______________________________________________________________________________________________________________________________________________________________________________

    <?php
    // =============================================================================
    // Main loop
    // =============================================================================
    ?>
    <?php $counter = 0; if (have_posts()) : while (have_posts()) : the_post(); ?>

    <?php
    if ($counter % 2 == 0) {
    echo ‘<div class=”row”>’;
    }
    ?>

    <div class=”col-lg-4 col-md-6″”>
    <div class=”news-item”>
    <?php
    $embeds = poka_get_embeds($post->post_content);

    if ( has_post_format( ‘video’ ) && isset($embeds[0]) ) {
    echo ‘<div class=”video-wrapper”>’;
    echo $embeds[0];
    echo ‘</div>’;
    } else {
    if ( has_post_thumbnail() ) {
    echo ‘<div class=”thumb-wrapper”>’;
    the_post_thumbnail(‘post-sm’);
    echo ‘</div>’;
    }
    }
    ?>
    <div class=”new-text-group”>
    <?php $category = get_the_category(); ?>
    <div class=”news-info clearfix”>
    <?php if($category){ echo $category[0]->cat_name; } ?>
    <span class=”pull-right”><?php the_time(‘d-m-Y’); ?></span>
    </div>
    <h2>“><?php the_title(); ?></h2>
    <?php the_excerpt(); ?>
    ” class=”read-more”><?php _e(‘Weiterlesen <i class=”icon-poka icon-poka-arrow-right”></i>’,’poka’); ?>
    <?php /* poka_social_social(); */ ?>
    </div>
    <!– /.news-text –>

    </div>
    <!– /.news-item –>
    </div>

    <?php
    if ($counter % 2 != 0 || ($wp_query->current_post +1) == ($wp_query->post_count)) {
    echo ‘</div>’;
    }
    $counter++; endwhile; endif; ?>

    <div class=”pagination”>
    <?php
    global $wp_query;

    $big = 999999999; // need an unlikely integer

    echo paginate_links( array(
    ‘base’ => str_replace( $big, ‘%#%’, esc_url( get_pagenum_link( $big ) ) ),
    ‘format’ => ‘?paged=%#%’,
    ‘current’ => max( 1, get_query_var(‘paged’) ),
    ‘total’ => $wp_query->max_num_pages,
    ‘prev_text’ => ‘<i class=”icon-poka icon-poka-arrow-left”></i>’,
    ‘next_text’ => ‘<i class=”icon-poka icon-poka-arrow-right”></i>’,
    ) );
    ?>
    </div>
    <!– /.pagination –>

    • This topic was modified 1 year ago by spielo.
    • This topic was modified 1 year ago by spielo.
    #17708
    spielo
    Participant

    You can see live on https://casino-berater.com/category/nachrichten/spielautomaten/ what i mean, two post fine size but one free place for third pots.

    #17724
    admin
    Keymaster

    Hi spielo,

    As this is a rather old version of PokaTheme, kindly send us an email at support@pokatheme.com to help you.

    Thanks!

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.