Como alterar wordpress e escolher as categorias que aparecerão em seu blog? Changing wordpress and choose which categories appear on your blog?
Escrito por Manoel Franklin em Setembro 22, 2008 Written by Manoel Franklin on September 22, 2008Seu theme possui na página inicial uma barra com links para as categorias ea grande quantidade delas está lhe causando problemas? Your theme has a home in the bar with links to the categories and the large number of them is causing you problems? Veja neste artigo como escolher quais categorias aparecerão em seu Wordpress. See this article how to choose which categories will appear on your Wordpress.
Fazer com que um theme abrigue corretamente todas as informações que você tem para mostrar pode ser realmente uma tarefa difícil, principalmente se você é um autor cheio de idéias e que não para de escrever um só minuto ao longo do dia, como eu. Making a theme houses correctly all the information you have to show can be a really difficult task, especially if you're an author full of ideas and not to write a single minute throughout the day, like me. ![]()
Organizar tanto conteúdo assim é um trabalho árduo e muitas das vezes sofre com barreiras como o próprio Theme Wordpress escolhido por você. Organize content so much hard work and often suffer from barriers such as himself Wordpress Theme of your choice. Imagine que para segmentar corretamente seu conteúdo, seu blog precise ter 10 categorias, agora imagine como estas 10 categorias estariam dispostas em um theme onde exista uma barra na página principal com link para estas categorias? Imagine that to properly target your content, your blog needs to have 10 categories, now imagine how these 10 categories were arranged in a theme where there is a bar on the main page with a link to these categories?
Um grande problema, não é? A big problem, right? Nem tanto. Not so. Devido ao grande potencial do Wordpress enquanto ferramenta de CMS este problema pode ser facilmente resolvido. Because of the potential of Wordpress as a CMS tool for this problem can be easily solved. Para mostrar em seu theme, apenas as categorias que deseja, basta utilizar algumas simples linhas de comando, veja: To show on your theme, just the categories you want, just use a few simple command lines, see:
- <ul class = “topmenubar” style= “float:left; width:720px;” > <ul class = "topmenubar" style= "float:left; width:720px;">
- <?php wp_list_categories( 'orderby=name&include=7,72,23,16,1,7,17,26′ ); ?> php wp_list_categories ( 'orderby = name & include = 7,72,23,16,1,7,17,26');?>
- </ul> </ ul>
Seu problema foi resolvido! His problem was solved! ![]()
Existem outras grandes mudanças que você pode fazer em seu blog Wordpress para lhe garantir sucesso, visite um artigo que escrevi sobre como There are other big changes you can make in your Wordpress blog to guarantee you success, visit an article I wrote about how modificar um theme wordpress modify a wordpress theme e obter muito sucesso. and much success. Todas as dicas deste post foram implementadas neste e em outros projetos em Wordpress os quais administro e posso garatir que o resultado é notável. Any tips on this post have been implemented in this and other projects in Wordpress which I manage and I garat that the result is remarkable.
A função Function wp_list_categories wp_list_categories , por default, traria todas as categorias cadastradas em seu blog, porém, adicionando o parâmetro 'include' e os ID's das categorias, a função trará apenas os links escolhidos por você. , By default, would all categories listings in your blog, however, by adding the 'include' and the ID's of categories, the function will just the links chosen by you. Você pode ainda alterar o estilo desta barra via CSS, basta customizar a classe topmenubar e pronto. You can also change the style of this bar via CSS, just customize the class topmenubar and ready.
Espero que esta dica seja muito útil! I hope this tip is very useful! Um grande abraço e até mais! A big hug and even more!
Veja também como See also how instalar o Wordpress Install Wordpress neste manual ilustrado e passo a passo! this illustrated manual and step by step!
Postado em Posted Tutoriais Tutorials | | 4 Comentários » 4 Comments »

















Setembro 23rd, 2008 em 10:13 September 23rd, 2008 at 10:13
Boa dica. Good tip. As vezes é importante dar um tempo e cuidar da parte técnica do blog para que a parte lógica não seja prejudicada. Sometimes it is important to take a break and take care of the technical part of the blog so that the logic is not impaired.
Abraços Hugs
Rodrigo Piva escreveu… Rodrigo Piva wrote ... Aceita uma deliciosa sopinha? Accepts a delicious soup?
Abril 24th, 2009 em 9:08 April 24th, 2009 at 9:08
Olá… Hello ...
Não consigo configurar isso na categoria do meu blog…queria que mostrasse apenas algumas categorias, mas ele continua mostrando todas as que tem posts. I can not set this in the category of my blog ... just wanted to show some categories, but he continues to show all that has posts.
Estou usando o código assim, como exemplo: I'm using this code, as an example:
Categorias Categories
O que será que estou fazendo errado? What am I doing wrong?
Grato. Grateful.
Setembro 6th, 2009 em 19:20 September 6th, 2009 at 19:20
Atraz do seu artigo, encontrei o que procurava. Ago of your article, I found what I sought. No meu casom queri apens excluir duas categoruias, ficou assim: In my Casom queri apens delete two categoruias, is as follows:
Valeuu Valeuu
Fevereiro 12th, 2010 em 10:40 February 12th, 2010 at 10:40
Onde devo escrever este código para selecionar as catagorias? Where should I write this code to select the Catagorias?
Vlw Vlw