Eva Morrissey
Respostas no Fórum
-
Fórum: Plugins
Em resposta a: Exibir conteúdo apenas para usuário logadoQuanto a não carregar para usuário que não esteja logado, redirecionando para uma página específica, resolvi isso adicionando o código:
<?php require_once('../SSI.php'); is_not_guest('mensagem a ser exibida ao usuário deslogado'); ?>
Ao header.php do meu tema. Mas como protejo os anexos de serem acessados por quem possui o link direto?
Fórum: Temas
Em resposta a: Fallback Images em tema próprioOk, problema resolvido! Por algum motivo, quando copiei os posts do blog original pra este de testes, ele copiou o fato de que havia thumbs configuradas, mas não importou as imagens, então estava dando pau nas fallback images. Muito obrigada Everaldo, sua solução funcionou depois que eu arrumei isso ^-^
Fórum: Temas
Em resposta a: Fallback Images em tema próprioInfelizmente, não funcionou :c
Meu superloop tá assim:
<!-- SUPERLOOP --> <?php if (have_posts()) : ?> <?php $count = 0; ?> <?php while (have_posts()) : the_post(); ?> <?php $count++; ?> <?php if ($count == 1) : ?> <div id="boxhome1"> <a class="linkimg" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" > <?php if ( has_post_thumbnail() ) { the_post_thumbnail( 'destaquespost' ); } else { ?> <img src="<?php bloginfo('template_directory'); ?>/images/default-image-big.jpg" alt="<?php the_title(); ?>" /> <?php } ?> </a> <h2><a href="<?php the_permalink() ?>" class="boxhome1-destaque"><?php the_title(); ?></a></h2> </div> <?php elseif ($count == 2) : ?> <div id="boxhome2"> <a class="linkimg2" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" > <?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } else { ?> <img src="<?php bloginfo('template_directory'); ?>/images/default-image.jpg" alt="<?php the_title(); ?>" /> <?php } ?> </a> <h2><a href="<?php the_permalink() ?>" class="boxhome2-destaque"><?php the_title(); ?></a></h2> </div> <?php elseif ($count == 3) : ?> <div id="boxhome3"> <a class="linkimg3" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" > <?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } else { ?> <img src="<?php bloginfo('template_directory'); ?>/images/default-image.jpg" alt="<?php the_title(); ?>" /> <?php } ?> </a> <h2><a href="<?php the_permalink() ?>" class="boxhome3-destaque"><?php the_title(); ?></a></h2> </div> <?php elseif ($count == 4) : ?> <div id="boxhome2"> <a class="linkimg2" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" > <?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } else { ?> <img src="<?php bloginfo('template_directory'); ?>/images/default-image.jpg" alt="<?php the_title(); ?>" /> <?php } ?> </a> <h2><a href="<?php the_permalink() ?>" class="boxhome2-destaque"><?php the_title(); ?></a></h2> </div> <?php elseif ($count == 5) : ?> <div id="boxhome3"> <a class="linkimg3" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" > <?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } else { ?> <img src="<?php bloginfo('template_directory'); ?>/images/default-image.jpg" alt="<?php the_title(); ?>" /> <?php } ?> </a> <h2><a href="<?php the_permalink() ?>" class="boxhome3-destaque"><?php the_title(); ?></a></h2> </div> <?php elseif ($count == 6) : ?> <div id="boxhome1"> <a class="linkimg" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" > <?php if ( has_post_thumbnail() ) { the_post_thumbnail( 'destaquespost' ); } else { ?> <img src="<?php bloginfo('template_directory'); ?>/images/default-image-big.jpg" alt="<?php the_title(); ?>" /> <?php } ?> </a> <h2><a href="<?php the_permalink() ?>" class="boxhome1-destaque"><?php the_title(); ?></a></h2> </div> <?php elseif ($count == 7) : ?> <div id="boxhome2"> <a class="linkimg2" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" > <?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } else { ?> <img src="<?php bloginfo('template_directory'); ?>/images/default-image.jpg" alt="<?php the_title(); ?>" /> <?php } ?> </a> <h2><a href="<?php the_permalink() ?>" class="boxhome2-destaque"><?php the_title(); ?></a></h2> </div> <?php elseif ($count == 8) : ?> <div id="boxhome3"> <a class="linkimg3" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" > <?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } else { ?> <img src="<?php bloginfo('template_directory'); ?>/images/default-image.jpg" alt="<?php the_title(); ?>" /> <?php } ?> </a> <h2><a href="<?php the_permalink() ?>" class="boxhome3-destaque"><?php the_title(); ?></a></h2> </div> <?php elseif ($count == 9) : ?> <div id="boxhome2"> <a class="linkimg2" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" > <?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } else { ?> <img src="<?php bloginfo('template_directory'); ?>/images/default-image.jpg" alt="<?php the_title(); ?>" /> <?php } ?> </a> <h2><a href="<?php the_permalink() ?>" class="boxhome2-destaque"><?php the_title(); ?></a></h2> </div> <?php elseif ($count == 10) : ?> <div id="boxhome3"> <a class="linkimg3" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" > <?php if ( has_post_thumbnail() ) { the_post_thumbnail(); } else { ?> <img src="<?php bloginfo('template_directory'); ?>/images/default-image.jpg" alt="<?php the_title(); ?>" /> <?php } ?> </a> <h2><a href="<?php the_permalink() ?>" class="boxhome3-destaque"><?php the_title(); ?></a></h2> </div> <div id="clear"></div> <?php else : ?> <div id="posts-da-home"> <h2><a href="<?php the_permalink() ?>"><div class="posts-da-home-destaque"><?php the_title(); ?></div></a></h2> <?php if ( has_post_thumbnail()) : ?> <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" > <?php the_post_thumbnail( 'homepage-thumb' ); ?> </a> <?php endif; ?> <?php the_excerpt(); ?> <a href="<?php the_permalink(); ?>" title="Continue lendo <?php the_title(); ?>" class="more-link">Continue lendo »</a> </div> <div id="clear"></div> <?php endif; ?> <?php endwhile; ?> <?php endif; ?> <!-- FIM DO SUPERLOOP -->
E dá pra ver ele (não funcionando) aqui: http://teste.livrodosespelhos.com/page/2/
As imagens estão devidamente no lugar, na pasta do tema, tudo certinho. O que estou fazendo de errado?
Fórum: Temas
Em resposta a: Tema só não funciona bem em uma páginaDesculpem, me debrucei sobre o código todo a noite e começo da madrugada e acabei resolvendo o problema sozinha – por algum motivo idiota, o WordPress abriu uma div dentro do post, mas não fechou, então estava tudo torto.
Fórum: Temas
Em resposta a: Customizar sidebar em post de acordo com a categoriaAchei a solução para o meu problema aqui:
http://lorelle.wordpress.com/2005/09/22/creating-multiple-single-posts-for-different-categories/
Deixo a resposta para o caso de mais alguém precisar da mesma coisa que eu.