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, 10 months ago by
admin.
-
AuthorPosts
-
March 26, 2023 at 6:25 pm #17705
spielo
ParticipantHi, 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 –>March 26, 2023 at 6:32 pm #17708spielo
ParticipantYou 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.
March 30, 2023 at 10:05 am #17724admin
KeymasterHi spielo,
As this is a rather old version of PokaTheme, kindly send us an email at support@pokatheme.com to help you.
Thanks!
-
AuthorPosts
- You must be logged in to reply to this topic.