Помогите с Snipped добавить more link
-
Доброго времени суток,
Знатоки, помогите разобраться с вот с ЭТИМ !!!
<?php $args = array('numberposts' => -5, 'order' => 'ASC' ); $allposts = get_posts($args); $numPost = count($allposts); $numCol = 2; $numPerCol = ceil($numPost / $numCol); $postgroup = array_chunk($allposts, $numPerCol); $counter = 0; foreach ($postgroup as $posts) { echo '<div class="columns-'.$numCol.($counter % $numCol == 0 ? ' first' : '').'">'; foreach($posts as $post) { $content = '<div class="col-post">'; $content .= '<h2><a href="'.$post->guid.'">'.$post->post_title.'</a></h2>'; $content .= '<div id="thumb-home"></div>'; $content .= $post->post_content; $content .= get_the_tag_list('<p>Tags: ',', ','< /p>'); $content .= '</div>'; echo $content; } echo '</div>'; $counter ++; } ?>
Вот как в этом добавить More link, Категорию и Thumbnail ?
Луп совсем для меня не знаком -(
- Тема «Помогите с Snipped добавить more link» закрыта для новых ответов.