← WordPress

[AJUDA] Como transformar uma categoria em página fixa

Lida 7134 vezes

Offline

tartofs 
Membro
Mensagens 205 Gostos 0
Troféus totais: 28
Trófeus: (Ver todos)
Tenth year Anniversary Nineth year Anniversary Windows User Linux User Mobile User Level 5 Super Combination Combination Topic Starter Level 4

Boas pessoal,

Desde já um reconhecimento a este fórum, muito tenho descoberto e aprendido aqui.

Bem, hoje venho ver se resolvo uma questão antiga, deve ser simples mas pesquisei nada achei.

Eu quero colocar uma página do Wordpress a abrir na categoria, exemplo:


----->


Existe algum plugin que faça isto? É difícil de fazer manualmente?

O site ainda está em construção, não liguem aos erros que possam ver.

Agradeço muito a quem queira ajudar.

Cumprimentos,
Ricardo
Offline

Nuno 
Administrador
Mensagens 7780 Gostos 216
Feedback +2

Troféus totais: 42
Trófeus: (Ver todos)
100 Poll Votes Level 7 Search Mobile User Level 6 Super Combination Combination Topic Starter 50 Poll Votes 10 Poll Votes

É fácil fazer, mas é difícil explicar...

Coloca aqui o ficheiro archive.php (o ficheiro que define as categorias) que alguém te faz isso. Sé é preciso saber o ID da categoria. Para depois o transformar no template de uma página.
Offline

tartofs 
Membro
Mensagens 205 Gostos 0
Troféus totais: 28
Trófeus: (Ver todos)
Tenth year Anniversary Nineth year Anniversary Windows User Linux User Mobile User Level 5 Super Combination Combination Topic Starter Level 4

Eu não tenho o archives.php, acho que me está a puxar do index.php, código:
Código: [Seleccione]
<?php get_header(); ?>

<div id="content" class="narrowcolumn">

<!-- Display Theme START -->
<table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td align="left" valign="top" class="box6a"><ul>

<?php if (is_tag())
{
echo 
"<h1>Tópicos na tag '";
single_tag_title();
echo 
"'</h1>";
}
?>


<?php if (is_category())
{
echo 
"<h1>Tópicos na categoria '";
single_cat_title();
echo 
"'</h1>";
}
?>


<?php if (have_posts()) : ?>

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

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

<li><div class="box6b"><p><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></p><p><?php the_thumb('SHOWPOST=1'); ?></p><table width="100%" border="0" cellspacing="0" cellpadding="0"><tr><td align="left" valign="top"><small><?php if(function_exists('the_ratings')) { the_ratings(); } ?></small></td><td width="36" align="center" valign="top"><div class="box6c"><div class="box6d"><ul><?php comments_popup_link('0''1''%'); ?></ul></div></div><small><?php edit_post_link(__('(Editar)')); ?></small></td></tr></table></div></li>

</div>

<?php endwhile; ?>

<?php else : ?>

<h2 class="center">Não encontrado.</h2>
<p class="center">Sorry, but you are looking for something that isn't here.</p>
<?php include (TEMPLATEPATH "/searchform.php"); ?>

<?php endif; ?>

</ul></td></tr></table>
<!-- Display Theme END -->

<!-- Pagebar START -->
<div style="height:20px;"><img src="<?php bloginfo('template_url'); ?>/images/0.gif" alt="<?php include (TEMPLATEPATH "/edit-alt.txt"); ?>" /></div>
<div id="pagination"><?php if (function_exists('wp_pagebar')) wp_pagebar(); ?></div>
<div style="height:12px;"><img src="<?php bloginfo('template_url'); ?>/images/0.gif" alt="<?php include (TEMPLATEPATH "/edit-alt.txt"); ?>" /></div>
<!-- Pagebar END -->

</div>

<?php get_sidebar(); ?>

<?php get_footer(); ?>

Os ficheiros do tema são somente:

Templates

  • Barra Lateral (sidebar.php)
  • Cabeçalho (header.php)
  • Comentários (comments.php)
  • Formulário de Pesquisa (searchform.php)
  • Funções do Tema (functions.php)
  • Modelo da Página (page.php)
  • Post Único (single.php)
  • Resultados da Pesquisa (search.php)
  • Rodapé (footer.php)
  • Template Principal (index.php)


Estilos

  • Folha de Estilos (style.css)

A categoria é a 4 (arquitectura)
Offline

tartofs 
Membro
Mensagens 205 Gostos 0
Troféus totais: 28
Trófeus: (Ver todos)
Tenth year Anniversary Nineth year Anniversary Windows User Linux User Mobile User Level 5 Super Combination Combination Topic Starter Level 4

Resolvido! :D

Este plugin permite que ao criar uma página se defina um redireccionamento para uma outra http://txfx.net/code/wordpress/page-links-to/

Conclusão, criei a primeira e então dou indicação que vai para a da categoria, muito simples.

Obrigado!

Offline

tartofs 
Membro
Mensagens 205 Gostos 0
Troféus totais: 28
Trófeus: (Ver todos)
Tenth year Anniversary Nineth year Anniversary Windows User Linux User Mobile User Level 5 Super Combination Combination Topic Starter Level 4

Peço desculpa por este triple post mas decidi escrever sobre o plugin, já que a minha pesquisa foi difícil espero facilitar outros.

Aqui fica http://in-utilidades.com/2010/02/como-colocar-uma-categoria-em-pagina-fixa-wordpress/

Cumprimentos e mais uma vez obrigado, se quiserem encerrar o tópico, façam favor.