darlannn2000
Respostas no Fórum
-
Fórum: Plugins
Em resposta a: Como Remover Imagem Destacada [Apenas dentro do Post]…Muito Obrigado Everaldo Matias deu certo aqui
e muito Obrigado tambem cristofersousa da sua maneira também deu certo
emfim Obrigado a todos que me ajudaram 🙂Fórum: Plugins
Em resposta a: Como Remover Imagem Destacada [Apenas dentro do Post]…este é meu arquivo theloop.php
qual configuração deve usar sou novo no wordpress???<?php
global $post, $query_string, $SMTheme;$i=1;
if (have_posts()) :if (!isset($_GET[‘ajaxpage’])) {?>
<div class=’articles’>
<?php }
while (have_posts()) : the_post();
?>
<div class=’one-post’>
<div id=”post-<?php the_ID(); ?>” <?php post_class(“post-caption”); ?>>
<?php if (!is_single()&&!is_page()) { ?>
<h2>” title=”<?php printf( $SMTheme->_( ‘permalink’ ), the_title_attribute( ‘echo=0′ ) ); ?>” class=’post_ttl’><?php the_title(); ?></h2>
<?php } else { ?>
<h1><?php the_title(); ?></h1>
<?php } ?>
<p style='<?php if (is_page()) echo ‘display:none’; ?>’><?php if (!is_page()) {?><span class=’post-date’><?php echo get_the_date(); ?></span> <img alt=”” src=”<?php echo get_template_directory_uri(); ?>/images/smt/category.png”> <?php the_category(‘, ‘); }?>
<?php if(comments_open( get_the_ID() )) {
?><img alt=”” src=”<?php echo get_template_directory_uri(); ?>/images/smt/comments.png”> <span class=”meta_comments”><?php comments_popup_link( $SMTheme->_( ‘noresponses’ ), $SMTheme->_( ‘oneresponse’ ), $SMTheme->_( ‘multiresponse’ ) ); ?></span><?php
}
?><?php edit_post_link( $SMTheme->_( ‘edit’ ), ‘ | <span class=”edit-link”>’, ‘</span>’ ); ?></p>
</div>
<div class=’post-body’>
<?php
if(has_post_thumbnail()) {
?><?php if (!is_single()) { ?>” title=”<?php printf( $SMTheme->_( ‘permalink’ ), the_title_attribute( ‘echo=0’ ) ); ?>”><?php the_post_thumbnail(
array($SMTheme->get( ‘layout’, ‘imgwidth’ ), $SMTheme->get( ‘layout’, ‘imgheight’ )),array(“class” => $SMTheme->get( ‘layout’,’imgpos’ ) . ” featured_image”)
); ?><?php } else { ?>
<?php the_post_thumbnail(
array(278, 173),
array(“class” => $SMTheme->get( ‘layout’,’imgpos’ ) . ” featured_image”)
); ?>
<?php }
}if (!is_single()&&!is_page()) {
if ( ! post_password_required() ) { smtheme_excerpt(‘echo=1’); } else the_content(”);
?>‘ class=’readmore’><?php echo $SMTheme->_( ‘readmore’ ); ?><?php
} else {
the_content(”);}
?>
<?php wp_link_pages(); ?>
</div>
</div>
<?php endwhile; ?><?php if (!isset($_GET[‘ajaxpage’])) {?>
</div>
<?php } ?><?php endif; ?>