← WordPress

[Ajuda] remover imagem de destaque de um post

Lida 20245 vezes

Offline

HilarYo 
Membro
Mensagens 188 Gostos 2
Troféus totais: 20
Trófeus: (Ver todos)
Apple User Super Combination Combination Topic Starter Level 4 Level 3 Level 2 Level 1 100 Posts 50 Posts

Tenta remover a linha:
Código: (php) [Seleccione]
echo '<div class="post_img"><img src='.$metro_creativex_feat_image[0].' alt="'.$metro_creativex_posttitle.'"></div>';

Esta linha é a responsável por colocar lá a imagem...
Offline

animearashi 
Membro
Mensagens 6 Gostos 0
Troféus totais: 6
Trófeus: (Ver todos)
Combination Topic Starter Level 1 First Post Second year Anniversary One year Anniversary

Muito Obrigado , funcionou na perfeição :D
Offline

animearashi 
Membro
Mensagens 6 Gostos 0
Troféus totais: 6
Trófeus: (Ver todos)
Combination Topic Starter Level 1 First Post Second year Anniversary One year Anniversary

Gostaria de saber se dá para criar categoria para utilizadores , queria um que só pudesse mexer nas páginas e artigos , queria outros para usar 1 plugins de video player para colocar videos.
Tem algum plugin?
Offline

HilarYo 
Membro
Mensagens 188 Gostos 2
Troféus totais: 20
Trófeus: (Ver todos)
Apple User Super Combination Combination Topic Starter Level 4 Level 3 Level 2 Level 1 100 Posts 50 Posts

Tenta usar um plugin deste género para criares as roles: https://wordpress.org/plugins/user-role-editor/
Pode resolver o teu problema
Offline

animearashi 
Membro
Mensagens 6 Gostos 0
Troféus totais: 6
Trófeus: (Ver todos)
Combination Topic Starter Level 1 First Post Second year Anniversary One year Anniversary

Tem alguma maneira nesse plugin de colocar ele só para mexer num plugin e não nos outros?
E se tiver como faço?
Offline

animearashi 
Membro
Mensagens 6 Gostos 0
Troféus totais: 6
Trófeus: (Ver todos)
Combination Topic Starter Level 1 First Post Second year Anniversary One year Anniversary

Olá meu amigo está com o mesmo problema, O que ele tem de remover? Do seu Single.php.
<?php get_header(); ?>

<div id="main">

<div id="content">

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

<div class="post-title"><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></div>
<div class="post-date"><?php _e('Posted on ', 'newgamer'); ?><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_time(get_option('date_format').', '.get_option('time_format')) ?></a><?php _e(' By ', 'newgamer'); ?><?php the_author_posts_link(); ?></div>

<?php if ( has_post_thumbnail()) : ?>
   <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
   <?php the_post_thumbnail('category-thumb', array('class' => 'alignnone')); ?>
   </a>
 <?php endif; ?>

<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

<?php the_content('Read More...'); ?>

</div>

<div class="authortek">
<?php echo get_avatar( get_the_author_meta( 'ID' ), 100 ); ?>
<div class="authortekinfo">
<h3><?php _e('About', 'newgamer'); ?> <?php the_author_posts_link(); ?></h3>
<p><?php the_author_meta('description'); ?></p>
</div>
</div>

<div class="commentstext"><?php
  comments_popup_link( 'No comments yet', '1 comment', '% comments', 'comments-link', '');
?> <?php _e('Categories: ', 'newgamer'); ?><?php the_category(', '); ?> <?php the_tags(); ?></div>


<div class="post-navigation">
<div class="previous-post"><?php previous_post_link( '%link', '' . _x( '&larr;', 'Previous post link', 'newgamer' ) . ' %title' ); ?></div>
<div class="next-post"><?php next_post_link( '%link', '%title' . _x( ' &rarr;', 'Next post link', 'newgamer' ) . '' ); ?></div>
</div>

<div class="breaker"></div>

<?php endwhile; else: ?>

<p><?php _e('Sorry, no posts matched your criteria.', 'newgamer'); ?></p><?php endif; ?>

<?php wp_link_pages(array('next_or_number'=>'next', 'previouspagelink' => '←', 'nextpagelink'=>'→')); ?>

<?php comments_template(); ?>

</div>

<?php get_sidebar(); ?>

</div>

<div class="delimiter"></div>

<?php get_footer(); ?>
Offline

animearashi 
Membro
Mensagens 6 Gostos 0
Troféus totais: 6
Trófeus: (Ver todos)
Combination Topic Starter Level 1 First Post Second year Anniversary One year Anniversary

Eu tenho esse problema da imagem de destaque ajudem-me plz.
Código: [Seleccione]
<?php get_header(); ?>

<div id="main">

<div id="content">

<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

<div class="post-title"><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></div>
<div class="post-date"><?php _e('Postado em ''AnimeArashi'); ?><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_time(get_option('date_format').', '.get_option('time_format')) ?></a><?php _e(' Por ''AnimeArashi'); ?><?php the_author_posts_link(); ?></div>

<?php if ( has_post_thumbnail()) : ?>
   <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
   <?php the_post_thumbnail('category-thumb', array('class' => 'alignnone')); ?>
   </a>
 <?php endif; ?>

<div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>

<?php the_content('Leia mais ...'); ?>

</div>

<div class="authortek">
<?php echo get_avatarget_the_author_meta'ID' ), 100 ); ?>
<div class="authortekinfo">
<h3><?php _e('Sobre''AnimeArashi'); ?> <?php the_author_posts_link(); ?></h3>
<p><?php the_author_meta('description'); ?></p>
</div>
</div>

<div class="commentstext"><?php
  comments_popup_link
'Sem comentários''1 comentário''% comentários''comments-link''');
?>
<?php _e('Categorias: ''AnimeArashi'); ?><?php the_category(', '); ?> <?php the_tags(); ?></div>


<div class="post-navigation">
<div class="previous-post"><?php previous_post_link'%link''' _x'&larr;''Previous post link''newgamer' ) . ' %title' ); ?></div>
<div class="next-post"><?php next_post_link'%link''%title' _x' &rarr;''Next post link''newgamer' ) . '' ); ?></div>
</div>

<div class="breaker"></div>

<?php endwhile; else: ?>

<p><?php _e('Sorry, no posts matched your criteria.''newgamer'); ?></p><?php endif; ?>

<?php wp_link_pages(array('next_or_number'=>'next''previouspagelink' => '&#38;#8592;''nextpagelink'=>'&#38;#8594;')); ?>

<?php comments_template(); ?>

</div>

<?php get_sidebar(); ?>

</div>

<div class="delimiter"></div>

<?php get_footer(); ?>