← HTML + CSS

Forma de expor os posts

Lida 4400 vezes

Offline

fpdeus 
Membro
Mensagens 1289 Gostos 0
Feedback +42

Troféus totais: 26
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1 1000 Posts

Boas,

Tenho o site telemoveisfixes.com que está a expor os artigos na homepage de uma forma, e queria colocar de outra.

Estão expostos assim: VER IMAGEM

Mas queria expor assim: VER IMAGEM

Alguém sabe como alterar?

Ao que me parece tenho de alterar alguma coisa aqui:

Código: [Seleccione]
<ul class="latestPosts">
<?php
if(get_option('wise_latest_posts')!=''){
$posts_query = new WP_Query($query_string.'&cat='.get_option('wise_blog_id').'&orderby=date&showposts='.get_option('wise_latest_posts'));
}else{
$posts_query = new WP_Query($query_string.'&cat='.get_option('wise_blog_id').'&orderby=date&showposts=4');
}
if ($posts_query -> have_posts()) : while ($posts_query -> have_posts()) : $posts_query -> the_post(); 
?>

<li>
<?php the_post_thumbnail(); ?><a href="<?php the_permalink(); ?>"><strong><?php the_title(); ?></strong></a><br /> <?php content('25'); ?>
<br /><span>Postado em <?php the_time('F j, Y'?></span>
</li>
<?php endwhile;
  endif; 
?>

</ul>
</div>
by home.php

Pois pelo que vi no page.php está assim:

Código: [Seleccione]
<div id="colLeft">
<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

<?php the_content(__('(continuar...)')); ?>

<?php endwhile; else: ?>
<p><?php _e('Desculpa, não existem artigos com esse critério.'); ?></p>
<?php endif; ?>
</div>

Mas se coloco como está no page.php ele não fica com o título do artigo.

Alguém consegue ajudar?
Offline

GhostMaster 
Membro
Mensagens 1374 Gostos 0
Feedback +10

Troféus totais: 26
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1 1000 Posts

Segundo vi aqui podes escolher o que queres na homepage: http://wordpress.site5.net/wise/doc/

E podes criar várias páginas com vários layouts.
Offline

fpdeus 
Membro
Mensagens 1289 Gostos 0
Feedback +42

Troféus totais: 26
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1 1000 Posts

Segundo vi aqui podes escolher o que queres na homepage: http://wordpress.site5.net/wise/doc/

E podes criar várias páginas com vários layouts.

Boas,

Sim, posso escolher o que quero apresentar na Homepage, ou seja o conteúdo.
Mas não consigo escolher como apresentar, ou seja, está pré-definido.

Abraços
Offline

GhostMaster 
Membro
Mensagens 1374 Gostos 0
Feedback +10

Troféus totais: 26
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1 1000 Posts

E as páginas não consegues criar uma página com layout de blog e defini-la como página inicial?
Offline

STronic 
Elite
Mensagens 546 Gostos 8
Feedback +5

Troféus totais: 30
Trófeus: (Ver todos)
Mobile User Search Apple User Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3

Não é ao page.php que tens de ir buscar, mas sim ao category.php
Offline

fpdeus 
Membro
Mensagens 1289 Gostos 0
Feedback +42

Troféus totais: 26
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1 1000 Posts

Não é ao page.php que tens de ir buscar, mas sim ao category.php

E se eu te disser que o este template não category.php... o que faço?
Offline

fpdeus 
Membro
Mensagens 1289 Gostos 0
Feedback +42

Troféus totais: 26
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1 1000 Posts

E as páginas não consegues criar uma página com layout de blog e defini-la como página inicial?

Consigo, mas simplesmente limita-se a colocar na "homepage" o conteúdo que está nessa página (caso não tenha, apenas o título) e depois coloca o conteúdo do blog na mesma.
Offline

STronic 
Elite
Mensagens 546 Gostos 8
Feedback +5

Troféus totais: 30
Trófeus: (Ver todos)
Mobile User Search Apple User Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3

Consigo, mas simplesmente limita-se a colocar na "homepage" o conteúdo que está nessa página (caso não tenha, apenas o título) e depois coloca o conteúdo do blog na mesma.

e blog.php ? e tag.php ?

o que tem mais?
e no index.php ? não tem um IF para mostrar a categoria?
Offline

fpdeus 
Membro
Mensagens 1289 Gostos 0
Feedback +42

Troféus totais: 26
Trófeus: (Ver todos)
Super Combination Combination Topic Starter Poll Voter Level 5 Level 4 Level 3 Level 2 Level 1 1000 Posts

e blog.php ? e tag.php ?

o que tem mais?
e no index.php ? não tem um IF para mostrar a categoria?

Os que tem:
single.php, sidebar.php, header.php, comments.php, contact.php, functions.php, search.php, footer.php, page.php, index.php, home.php, home_header.php, portfolio.php, sendmail.php, testimonials.php, timthumb.php

Peço desculpa pelo tamanho:

Código: [Seleccione]
<?php get_header(); ?>

<?php if (get_option('wise_portfolio_id')!='' && is_category(get_option('wise_portfolio_id'))){?>
<?php include (TEMPLATEPATH '/portfolio.php'); ?>
<?php } elseif(get_option('wise_testimonials_id')!='' && is_category(get_option('wise_testimonials_id'))){?>
<?php include (TEMPLATEPATH '/testimonials.php'); ?>
<?php }else{?>

<?php 
$current get_the_category(); 
$current_id$current[0] ->cat_ID
$categs_list get_category_parents($current_id);
$pieces explode("/"$categs_list);
$parent_name $pieces[0];
$parent_id get_cat_id($pieces[0]);
?>

<div id="innerTop">
<?php if(is_month()){?>
<div class="innerTitle clearfix">Archive</div>
<div class="innerDesc"><?php the_time('F, Y'?></div>
<?php }elseif(is_category() || post_is_in_descendant_category($parent_id)){?>
<div class="innerTitle clearfix"><?php echo $parent_name?></div>
<?php if(category_description($parent_id) !=''){?>
<div class="innerDesc"><?php echo category_description($parent_id);?> </div>
<?php }
  }?>

</div>

<!-- begin colLeft -->
<div id="colLeft">
<!-- archive-title -->
<?php if(is_month()) { ?>
<div id="archive-title">
<strong></strong> Todos os artigo para <strong><?php the_time('F, Y'?></strong>
</div>
<?php ?>
<?php if(is_category()) { ?>
<div id="archive-title">
<strong></strong> Todos os artigos em <strong><?php $current_category single_cat_title(""true); ?></strong>
</div>
<?php ?>
<?php if(is_tag()) { ?>
<div id="archive-title">
<strong></strong> Todos os artigos com tags de <strong><?php wp_title('',true,''); ?></strong>
</div>
<?php ?>
<?php if(is_author()) { ?>
<div id="archive-title">
<strong></strong> Todos os artigos por <strong><?php wp_title('',true,''); ?></strong>
</div>
<?php ?>
<!-- /archive-title -->
<?php if(is_month()){
$posts_query = new WP_Query($query_string.'&cat='.get_option('wise_blog_id'));
}else{
$posts_query = new WP_Query($query_string);}
if ($posts_query -> have_posts()) : while ($posts_query -> have_posts()) : $posts_query -> the_post();?>

<!-- begin post -->
<div class="blogItem clearfix">
<div class="postComments">
<?php comments_popup_link('0''1''%'); ?>
</div>
<div class="meta">
<span class="metadata"><img src="<?php bloginfo('template_url'); ?>/images/ico_folder.png" alt="Postado" /> <?php the_time('F j, Y'?> em <?php the_category(', '?> por <?php the_author() ?></span>
<h1><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h1>
</div>
<?php the_content(__('<strong>Ler mais &raquo;</strong>')); ?>

</div>
<!-- end post -->

<?php endwhile; ?>

<!-- <div class="navigation">
<div class="alignleft"><?php next_posts_link('Anterior'?></div>
<div class="alignright"><?php previous_posts_link('Próximo'?></div>
</div> -->
<?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } ?> 

<?php else : ?>

<p>Desculpa, mas não encontramos o que procura.</p>

<?php endif; ?>
</div>
<!-- end colLeft -->

<?php get_sidebar(); ?>
<?php }?>

Isto é o que está no index.php