Suporte » Temas » Postagem sem Thumbnail

  • Resolvido Taylorufv

    (@taylorufv)


    Boa tarde, galera!

    Em meu tema as postagem aparacem com o Thumbnail, eu gostaria que as postagem ficassem no estilo blog, só que no tema no tem essa opção.
    Alguém poderia me ajudar?

    Obrigado

    Index.php

    <?php
    global $options;
    foreach ($options as $value) {
        if (get_settings( $value['id'] ) === FALSE) { $$value['id'] = $value['std']; } else { $$value['id'] = get_settings( $value['id'] ); }
    }
    ?>
    <?php get_header(); ?> 
    
    		<?php if ( $paged < 2) {
    				  if ($wpzoom_slideshow_show == 'Yes')
    				  {
    					include (TEMPLATEPATH . "/featured.php");
    					}
    			  }?>
    
    <div id="main">
    
    		<div id="content">
    		<h3 class="cuffon">Latest Articles</h3>
    
    		<?php 
    
    			  $z = count($wpzoom_exclude_cats_home);
    			  if ($z > 0)
    			  {
    				$x = 0;
    				$que = "";
    				while ($x < $z)
    				{
    				  $que .= "-".$wpzoom_exclude_cats_home[$x];
    				  $x++;
    				  if ($x < $z) {$que .= ",";}
    				}
    			  }
    
    			  query_posts($query_string . "&cat=$que");
    
    			if (have_posts()) : ?>
    				<?php while ($wp_query->have_posts()) : $wp_query->the_post(); ?>
             <div class="article" id="post-<?php the_ID(); ?>">
    				<div class="pic">
    				<a href="<?php the_permalink() ?>" title="<?php the_title(); ?>">
    				 <?php
    				unset($cimage);
    					$cimage = catch_that_image (get_the_id(), '', '', '' .get_bloginfo('template_url') .'/scripts/timthumb.php?zc=1&w=234&h=180&src=');
    
    					if ( current_theme_supports( 'post-thumbnails' ) && has_post_thumbnail() ) {
    				the_post_thumbnail(array(234,9999, true)); 
    
    				echo"<div class=\"bubble\">"; comments_popup_link('0', '1', '%', '', '0'); echo"</div>";
    				}
    
    				elseif ($cimage){ 
    
    				echo"$cimage";
    				echo"<div class=\"bubble\">"; comments_popup_link('0', '1', '%', '', '0'); echo"</div>";
    				} ?>
    
    				</a>
    
    				</div> <!-- /#pic -->
    
                    <h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
    
                    <span class="date"><?php the_time('F j, Y') ?></span>
                    <span class="category"><?php the_category(', ') ?></span>
    
                    <?php edit_post_link('Edit', '', ''); ?>
    
    				<?php the_excerpt();?>
    
    				<a class="readmore" href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">Read More <span>»</span></a>
    				<div class="clear"></div>
               </div><!-- /#article -->
    
            <?php endwhile; ?>
            <?php wp_reset_query(); ?>	
    
            <div class="navigation">
    
    			<?php if (function_exists('wp_pagenavi')) { wp_pagenavi(); } else { ?>
    
    				<div class="floatleft"><?php next_posts_link( __('« Older Entries', '') ); ?></div>
    				<div class="floatright"><?php previous_posts_link( __('Newer Entries »', '') ); ?></div>
    
    			<?php } ?>
    
    		</div>
    
     	<?php else : ?>
    
    		<h2>Not Found</h2>
    		<p>Sorry, but you are looking for something that isn't here.</p>
    
    	<?php endif; ?>
     </div> <!-- end content -->
    <?php get_sidebar(); ?>
    <?php get_footer(); ?>

Visualizando 2 respostas - 1 até 2 (de um total de 2)
  • Remova:

    <?php
    				unset($cimage);
    					$cimage = catch_that_image (get_the_id(), '', '', '' .get_bloginfo('template_url') .'/scripts/timthumb.php?zc=1&w=234&h=180&src=');
    
    					if ( current_theme_supports( 'post-thumbnails' ) && has_post_thumbnail() ) {
    				the_post_thumbnail(array(234,9999, true)); 
    
    				echo"<div class=\"bubble\">"; comments_popup_link('0', '1', '%', '', '0'); echo"</div>";
    				}
    
    				elseif ($cimage){ 
    
    				echo"$cimage";
    				echo"<div class=\"bubble\">"; comments_popup_link('0', '1', '%', '', '0'); echo"</div>";
    				} ?>

    E subsstitua por:

    <div class=\"bubble\">"; comments_popup_link('0', '1', '%', '', '0'); echo"</div>

    Criador do tópico Taylorufv

    (@taylorufv)

    Consegui mudar o post dele!
    Só reitirei essa linha, não precisou add a outra…

    Retirei do index.php e archive.php as chamadas

    <?php
    				unset($cimage);
    					$cimage = catch_that_image (get_the_id(), '', '', '' .get_bloginfo('template_url') .'/scripts/timthumb.php?zc=1&w=234&h=180&src=');
    
    					if ( current_theme_supports( 'post-thumbnails' ) && has_post_thumbnail() ) {
    				the_post_thumbnail(array(234,9999, true)); 
    
    				echo"<div class=\"bubble\">"; comments_popup_link('0', '1', '%', '', '0'); echo"</div>";
    				}
    
    				elseif ($cimage){ 
    
    				echo"$cimage";
    				echo"<div class=\"bubble\">"; comments_popup_link('0', '1', '%', '', '0'); echo"</div>";
    				} ?>

    E mudei o CSS dele.

    Obrigado, Dianakc!

Visualizando 2 respostas - 1 até 2 (de um total de 2)
  • O tópico ‘Postagem sem Thumbnail’ está fechado para novas respostas.