Colocar categoria em 2 colunas
-
Ola eu atualmente uso o template ascent e eu gostaria de quando você clica em categorias que aparecesse um ao lado do outro, eu de uma olhada no content.php mas como fica em loop nao consegui alterar para um ficar alinhado ao lado do outro, aguardo que vocês possam me responder
Obrigado a todos
P.S: Codigo do ascent:
‘<?php
/**
* @package ascent
*/
?><?php // Styling Tip!
// Want to wrap for example the post content in blog listings with a thin outline in Bootstrap style?
// Just add the class “panel” to the article tag here that starts below.
// Simply replace post_class() with post_class(‘panel’) and check your site!
// Remember to do this for all content templates you want to have this,
// for example content-single.php for the post single view. ?><article id=”post-<?php the_ID(); ?>” <?php post_class(panel); ?>>
<div class=”row”>
<!–retirado daqui–><div class=”post-content-wrap col-sm-6 col-md-5″>
<header class=”page-header”>
<h1 class=”entry-title”>” rel=”bookmark”><?php the_title(); ?></h1>
<span class=”entry-author”>
<?php _e(‘Posted by’, ‘ascent’) ?>
<span class=”author vcard entry-author-link”>
<?php the_author_posts_link(); ?>
</span>
</span>
</header><!– .entry-header –><?php if ( is_search() || is_archive() ) : // Only display Excerpts for Search and Archive Pages ?>
<div class=”entry-summary”>
<?php the_excerpt(); ?>
“><?php _e(‘Read More →’, ‘ascent’); ?>
</div><!– .entry-summary –><?php else : ?>
<div class=”entry-content”>
<?php $format = get_post_format($post->ID); ?>
<?php if (has_post_thumbnail($post->ID)): ?>
<?php
$image_id = get_post_thumbnail_id();
$full_image_url = wp_get_attachment_url($image_id);
?>
<?php if ( ” != get_the_post_thumbnail() ): ?>
<figure>
” title=”<?php the_title(); ?>”>
<?php the_post_thumbnail(‘blog-page’); ?>
</figure>
<?php endif; ?>
<?php endif; ?><?php the_excerpt(); ?>
<?php
wp_link_pages( array(
‘before’ => ‘<div class=”page-links”>’ . __( ‘Pages:’, ‘ascent’ ),
‘after’ => ‘</div>’,
) );
?>
“><?php _e(‘Read More →’, ‘ascent’); ?></div><!– .entry-content –>
<?php endif; ?><footer class=”footer-meta”>
<?php if ( ‘post’ == get_post_type() ) : // Hide category and tag text for pages on Search ?><?php
/* translators: used between list items, there is a space after the comma */
$categories_list = get_the_category_list( __( ‘, ‘, ‘ascent’ ) );
?>
<?php
/* translators: used between list items, there is a space after the comma */
$tags_list = get_the_tag_list( ”, __( ‘, ‘, ‘ascent’ ) );
?><?php if ( ($categories_list && ascent_categorized_blog()) || ($tags_list) ): ?>
<div class=”cat-tag-meta-wrap”>
<?php if ( $categories_list && ascent_categorized_blog() ) : ?>
<!–retirado 2 daqui–>
<?php endif; ?>
<?php if ( $tags_list ) : ?>
<span class=”tags-meta”><?php printf( __( ‘<i class=”fa fa-tags”></i> %1$s’, ‘ascent’ ), $tags_list ); ?></span>
<?php endif; ?>
</div>
<?php endif; ?>
<?php endif; ?>
</footer><!– .entry-meta –>
</div><!–.post-content-wrap–></div><!–.row–>
</article><!– #post-## –>’
- O tópico ‘Colocar categoria em 2 colunas’ está fechado para novas respostas.