• Resolvido offzinho

    (@offzinho)


    Codigo:

    <?php if (have_posts()) : ?>
    <?php $posts=query_posts($query_string . '&posts_per_page=-32'); ?>
    	<?php while (have_posts()) : the_post(); ?>
      	<div class="archive">
        	<p class="left">
        		<a href="<?php the_permalink() ?>" rel="bookmark"><img src="<?php bloginfo('template_directory'); ?>/includes/timthumb.php?src=<?php get_thumbnail($post->ID, 'full'); ?>&h=100&w=100&zc=1" alt="<?php the_title(); ?>" /></a>
        	</p>
          	<h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>

    Bem pessoal antes de mais nada boa noite, venho aqui pedir a ajuda de vocês pois depois de pesquisar muito não achei nada a respeito.
    Eu gostaria que quando clica-se em uma categoria mostrar apenas a imagem e o titulo em baixo. porem uma item ao lado do outro pelo menos 4 a 5.

Visualizando 1 resposta (de um total de 1)
  • Criador do tópico offzinho

    (@offzinho)

    em minha pagina inicial possui o codigo como eu queria porem não venho a conseguir adaptar.

    <?php if (get_theme_mod('breaking') == 'Yes') { ?>
    	<div id="breaking">
    		<h1 class="widgettitle"><a href="<?php echo get_category_link(get_theme_mod('breakingcat')); ?>"><?php echo cat_id_to_name(get_theme_mod('breakingcat')); ?></a></h1>
    		<?php $recent = new WP_Query("cat=".get_theme_mod('breakingcat')."&showposts=20&orderby=rand"); while($recent->have_posts()) : $recent->the_post();?>
    
    		<div class="breakingbox">
    			<?php tj_thumbnail(breakingthumbw, breakingthumbh); ?>
    			<h2><a href="<?php the_permalink(); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
    		<div class="clear"></div>
    		</div> <!--end: breakingbox-->
    	    <?php endwhile; ?>
    	 <div class="clear"></div>
    	 </div> <!--end: breaking-->
    	 <?php } ?>

    foto de como fica com esse codigo na home http://img341.imageshack.us/img341/1267/exemploir.jpg

    Porem não consegui adaptar ele no archives

Visualizando 1 resposta (de um total de 1)
  • O tópico ‘Archives visual diferente’ está fechado para novas respostas.