Host Unlimited Web Sites for Only $10 per Month! Ovunque ospitante Siti Web per soli $ 10 al mese!
Powered by MaxBlogPress Powered by MaxBlogPress

Wordpress Hack # 15: Hacking Wordpress Tag | JTPRATT's Blogging Errori
JTPratt's blogging errori





Home Casa » Wordpress Hack #15: Hacking Wordpress Tags "Wordpress Hack # 15: Hacking Wordpress Tag



Posted in: Posted in:

blog-setup categoria immagineWordPress categoria immagine
1,063 views 1.063 punti di vista


Please note: This page was originally written in English. Nota: Questa pagina è stata originariamente scritto in inglese.

The original post can be viewed Il post originale può essere visualizzato here qui .

Please note: This page was originally written in English.

The text has been translated using an online service such as Google or Babelfish.

The original post can be viewed here.


Today we’ll learn How to add Tag Support by hacking your Wordpress theme! Oggi ti Ulteriori informazioni su come aggiungere tag Supporto di hacking il tuo Wordpress tema!

This is day #15 of Questo è il giorno # 15 del 30 Wordpress Hacks in 30 Days 30 Hacks Wordpress in 30 giorni .

If you’re using Wordpress 2.3x or 2.5 or higher you have the ability to use “tags”. Se si sta utilizzando Wordpress 2.3x o 2,5 o superiore si avrà la possibilità di utilizzare "tag". If you use social media at all, you should already know what a tag is. Se si utilizza sociale a tutti i mezzi di informazione, si dovrebbe già sapere che cosa è un tag. Basically it’s just a piece of metadata, a “descriptor” of some kind. Fondamentalmente è solo un pezzo di metadati, un "Descrittore" di qualche tipo. When you blog, it’s also another way to pigeonhole and file your content. Quando si blog, è anche un altro modo per pigeonhole e file contenuti. The implementation of tags in Wordpress is very important, because it keep people from “using categories as tags” as many of us have done over the years. L'attuazione del tag di Wordpress è molto importante, perché tengono le persone da "utilizzando categorie come tag", come molti di noi hanno fatto nel corso degli anni. There were dozens of plugins available to add tags to your Wordpress blog, but now all that functionality is available without using any plugins at all. Ci sono state decine di collegamenti a disposizione di aggiungere tag al tuo blog Wordpress, ma ora che tutti i funzionalità è disponibile senza utilizzare i collegamenti a tutti.

Think of categories as high level descriptions. Pensare di categorie come le descrizioni di alto livello. What do you like to blog about? Che cosa ti piace di blog? Movies, Music, Politics, and Web Design. Film, Musica, Politica e Web Design. Those are categories. Queste sono le categorie. However, when you blog - the tags would be Obama, John Candy, AC/DC, and HTML. Tuttavia, quando si blog - il tag sarebbe Obama, John Candy, AC / DC, e HTML. Get it? Get it? All you have to do is enter description tags when you blog, along with a category. Tutto quello che dovete fare è inserire i tag descrizione quando si blog, insieme a una categoria. Now you’re probably wondering, what do I do with that information? Ora probabilmente siete chiedo, che cosa devo fare con queste informazioni?

Depending on how old your theme is it may or may not have “tag support”, which means that it might not be coded to do anything at all with those tags you’re entering. A seconda di come il tuo vecchio tema è esso può o non può avere "etichetta di sostegno", il che significa che potrebbe non essere codificati a fare qualsiasi cosa a tutti i tag con quelli che stai entrando. The first thing you can do is to add a (now famous) “tag cloud” in your side bar like I did, with this code: La prima cosa che possiamo fare è di aggiungere un (divenuto famoso) "etichetta nube" nella vostra barra laterale come ho fatto, con questo codice:

 <?php if ( function_exists('wp_tag_cloud') ) : ?> <li> <h2>Popular Tags</h2> <ul> <?php wp_tag_cloud('smallest=8&largest=22'); ?> </ul> </li> <?php endif; ?> <? php if (function_exists ( 'wp_tag_cloud')):?> <li> <h2> Popolare tag </ h2> <ul> <? php wp_tag_cloud ( 'più piccolo = 8 & più grande = 22');?> </ ul> </ li> <? php endif;?> 

If you want to know more about how that codes works and how you can modify it, visit the Se volete saperne di più su come codici che funziona e come è possibile modificarlo, visitare il Wordpress Codex Tag Cloud Page Wordpress Codex Tag Cloud pagina .

Another thing you can do is to add the tags you used beneath your post by adding some code to your single.php file (for single posts). Un'altra cosa che possiamo fare è di aggiungere il tag si è utilizzato sotto il tuo post, aggiungendo un po 'di codice al tuo file single.php (per singolo post). You could do it on your index.php home page as well, but I don’t much see the point in that. Che si possa fare sul tuo index.php come pagina iniziale del bene, ma non molto di vedere il punto in questo senso. All you have to do is add the following code near the end of the loop to display the tags used at the end of the post: Tutto quello che dovete fare è aggiungere il seguente codice verso la fine del loop per visualizzare i tag utilizzati alla fine del post:

 <?php the_tags('<p>Tags: ', ', ', '</p>'); ?> <? php the_tags ( '<p> Tag:', ',', '</ p>');?> 

So, now we’ve talked about how to modify your theme to add the tags used after a post, and how to place a tag cloud in your sidebar (without using a plugin). Quindi, ora abbiamo parlato di come modificare il tuo tema per aggiungere i tag utilizzati dopo un post, e come luogo di un tag nube nella tua sidebar (senza usare un plugin). Click on one of the links in my post (to a tag) or my tag cloud and you’ll see (much like a category page) it goes to a “tag” page, or something like site.com/tag/wordpress-hack. Fare clic su uno dei link nel mio post (di un tag) o la mia etichetta nube e vedrete (molto simile a una categoria pagina) va a un "tag" pagina, o qualcosa di simile site.com/tag/wordpress- hack.

Be default Wordpress will look for the “tag.php” file (that most themes don’t have), and if there isn’t one your archive.php will be used by default. Wordpress essere impostazione predefinita sarà per il "tag.php" file (che la maggior parte dei temi non hanno), e se non c'è il tuo archive.php verrà utilizzato per impostazione predefinita. You could just leave this as-is, or create your own custom “tag.php” to make your tag pages unique. Si potrebbe lasciare questo-come è, o creare il tuo personalizzato "tag.php" per rendere il vostro pagine etichetta unica. One way to do this would be to add a “tag cloud” to the top of each tag page. Un modo per farlo sarebbe quello di aggiungere una "nube etichetta" nella parte superiore di ogni pagina etichetta. The Il Wordpress Codex Tag Page Wordpress Codex etichetta pagina has more information on creating a custom tag.php file for your theme. ha maggiori informazioni sulla creazione di un file tag.php personalizzato per il tuo tema.

This post was all about “how to add tag support to your Wordpress theme”. Questo post è stato tutto sul "come aggiungere tag di sostegno al tuo Wordpress tema". In a future post, I’ll show you what you need to know about tagged pages and Wordpress SEO. In un futuro post, vi mostrerò ciò che devi sapere sui contrassegnati pagine e Wordpress SEO. As always, if you have something to add to make this post better, or a question - comment now! Come sempre, se avete qualcosa da aggiungere a questo post meglio, o di una questione - commento ora!


Tags: Tag: , , , , ,

11 Responses to “Wordpress Hack #15: Hacking Wordpress Tags” 11 risposte a "Wordpress Hack # 15: Hacking Wordpress Tag"

  1. unique articles unico articoli Has the following to say... Ha le seguenti dire ...

    You have a really good tutorial there quick and easy to follow, you should amke it into an article and do some article submissions with it to attract more people to your site. Avete un buon tutorial vi rapido e facile da seguire, si dovrebbe fare in un articolo e qualche articolo osservazioni con esso per attirare un maggior numero di persone al tuo sito.

    Really like that and keep up the good work :) Che piace molto e mantenere il buon lavoro:)

    unique articless last blog post.. unico articless ultimo post sul blog .. The Art Of Online Writing L'arte della scrittura on-line

  2. Erika Erika Has the following to say... Ha le seguenti dire ...

    LOL I was just looking for this yesterday! LOL stavo cercando ieri! Thanks for the little tidbit! Grazie per il piccolo tidbit!

    Erikas last blog post..1 Erikas ultimo post sul blog .. 1

  3. CJ CJ Has the following to say... Ha le seguenti dire ...

    Categories are nice to start your site off. Categorie sono piacevole per iniziare il tuo sito off. Use the descriptions of the categories to add keyword content like JT talks about and then the tags to get specific. Utilizzare le descrizioni delle categorie di aggiungere contenuti, come parole chiave JT parla e poi i tag per ottenere specifici. I don’t add tags till I have some pages going. Io non aggiungere tag fino Ho alcune pagine in corso. . . looks bad to have one post in ten places. guarda male ad avere un posto in dieci posti.

    I haven’t found a problem with duplicate content using tags. Non ho trovato un problema con contenuti duplicati utilizzando tag. I know it’sa big topic but google seems to be ok with tags. So che è un grande argomento, ma google sembra essere ok con tag. I’ve been adding tons on my wordpress.com blog and haven’t seen any problems. Sono stato l'aggiunta di tonnellate wordpress.com sul mio blog e non hanno visto alcun problema. However, I do like to keep them to a smaller number on my main blogs but I’ve seen others that use them by the truck loads. Tuttavia, come posso fare per tenerli a una riduzione del numero principale per il mio blog, ma ho visto che altri di utilizzare il loro camion carichi.

    CJs last blog post.. CJS ultimo post sul blog .. Sorbs

  4. CJ CJ Has the following to say... Ha le seguenti dire ...

    Update: Aggiornamento:

    Just spent the past few days studying up on tags, technorati, and other blog search engines. Appena trascorso gli ultimi giorni di studio fino a tag, technorati, blog e altri motori di ricerca.

    First, we all should be using the rel-”tag” (note that - should be an In primo luogo, noi tutti dovrebbe essere utilizzando la rel-"tag" (si noti che - dovrebbe essere un = sign) on all our links that have key words. segno) su tutti i nostri legami che hanno parole chiave. Many of those links you may not want to have a tag for your visitors to follow. Molti di questi link è possibile che non vogliono avere un tag per i visitatori da seguire. This works well with blog search engines, also. Questo metodo funziona bene con i motori di ricerca blog, anche. This allows your keywords to be tagged without needing to put a tag at the bottom of your post Ciò consente le parole chiave per essere contrassegnati senza la necessità di mettere un tag nella parte inferiore del tuo post

    Remember that technorati uses + while wordpress uses - between words. Technorati ricordare che utilizza +, mentre utilizza wordpress - tra le parole. Technorati also uses the - for tags but they aren’t the primary tags, thus a multi word tag on technorati should be worda+wordb+wordc while that will be worda-wordb-wordc on wordpress. Technorati utilizza anche il - per i tag ma non sono il primo tag, quindi una parola più tag technorati dovrebbe essere worda + + wordb mentre wordc che verranno worda-wordb-wordc a wordpress.

    Here’s the problem. Ecco il problema.
    You cannot link within a post to your technorati tag (worda+wordb+wordc) because wordpress will remove the + and you get wordawordbwordc Non è possibile all'interno di un link al tuo post technorati tag (worda + wordb + wordc) a causa dei wordpress si rimuovere il + e si ottiene wordawordbwordc

    Not what you really want. Non ciò che si vuole veramente.

    Let me see if I can make this clearer. Vediamo se posso renderlo più chiaro.
    You may want to hyperlink keywords within the post but not leave your site and have no real post to link to, thus you would love to link to that tag, right? È possibile che si desideri collegamento ipertestuale parole chiave all'interno di post, ma non abbandonano il tuo sito e non hanno alcuna reale posta al collegamento, quindi ti piacerebbe link a tale etichetta, giusto? Well, to have that tag be equal to technorati you want to us a “+” between words, but you can’t do that in a wordpress link. Ebbene, a che hanno etichetta essere pari a technorati si desidera per noi un "+" tra le parole, ma non è possibile farlo in un wordpress link. Wordpress will remove the +. Wordpress rimuoverà i +.
    The only way to link keywords to a tag page in wordpress is to seperate words with a - L'unico modo per collegare le parole chiave in un tag pagina in wordpress è quello di separare le parole con un --
    That’s the same way wordpress sees your tags, categories, and everything else. Che è allo stesso modo wordpress "vede" il tuo tag, categorie, e tutto il resto. WordPress always uses - while technorati used a + WordPress utilizza sempre - mentre technorati utilizzati a +

    The only real way to stay on your site and use the + is to link the keywords to a search function (hyperlink like normal but end with index.php?s=wordsa+wordb” rel-”tag”) This will then cause a search function on your site for that tagged words in the hyperlink L'unico vero modo per rimanere sul tuo sito e usare il + è di collegare le parole chiave ad una funzione di ricerca (come collegamento ipertestuale normale, ma a fine index.php? S = wordsa + wordb "rel-" tag ") Ciò quindi causare un funzione di ricerca sul tuo sito che per contrassegnati parole nel collegamento ipertestuale

    This is a long way to say, on wordpress you will never have a tag “page” that is equal to a tchnorati tag because wordpress doesn’t allow the use of + as a separator between words. Si tratta di un lungo cammino da dire, a wordpress voi non avrà mai un tag "pagina" che è pari ad una etichetta tchnorati wordpress perché non permette l'uso di + come separatore tra le parole.

    CJs last blog post.. CJS ultimo post sul blog .. Akismet Spam Akismet Spam

  5. Make Online Money Fare soldi online Has the following to say... Ha le seguenti dire ...

    Nicely done. Nicely done. Most of my blog ‘marketing’ is done through social bookmarking. La maggior parte del mio blog 'di commercializzazione' viene fatto attraverso Bookmarking sociale. (I use socialmarker.com to broadcast to multiple bookmarking sites at once.) I really like your ideas here. (Io uso socialmarker.com di trasmissione di un segnalibro a più siti contemporaneamente.) Mi piace molto le tue idee qui.

    Make Online Moneys last blog post.. Fare soldi online ultimo post sul blog .. Profit from Poo Profitto da Poo

  6. Trying Hard Cercando Hard Has the following to say... Ha le seguenti dire ...

    I’ll consider adding something like the tag cloud, but I really don’t like the look of it. I'll prendere in considerazione l'aggiunta qualcosa come l'etichetta nube, ma io sinceramente non piace l'aspetto di essa. I’d prefer it to show the more popular tags increasingly darker and darker, but the same font. Preferirei che mostra il più popolare tag sempre più scuro e più scura, ma lo stesso carattere. Any chance you’ve seen one like this I could use? Qualsiasi possibilità di aver visto uno così ho potuto utilizzare?

    Trying Hards last blog post.. Cercando Hards ultimo post sul blog .. Preparing Safety Posts Preparazione di sicurezza posti

  7. Chris Hunt Chris Hunt Has the following to say... Ha le seguenti dire ...

    Trying Hard - try installing the “Simple Tags” plugin, it lets you customise the appearance of tag clouds and do all sorts of other clever things with tags. Cercando Hard - tenta di installare il "semplice tag" plug in, consente di personalizzare l'aspetto del tag nuvole e fare tutti i tipi di altre cose intelligenti con tag.

  8. Trying Hard Cercando Hard Has the following to say... Ha le seguenti dire ...

    I’ll check that out. I'll verificare che fuori. Thanks. Grazie.

    Trying Hards last blog post.. Cercando Hards ultimo post sul blog .. Multiple Ideas Mashed Into One Topic Purè di più idee in un unico argomento

  9. Blog for Beginners Blog per principianti Has the following to say... Ha le seguenti dire ...

    I am yet to see the benefit of using tag cloud. Io sono ancora per visualizzare il vantaggio di usare tag nube. Maybe I’m wrong but for now I don’t like to clutter my sidebar with it. Sono forse sbagliato ma per ora non mi piace ingombrare la mia barra laterale con esso.

    Blog for Beginnerss last blog post.. Blog per Beginnerss ultimo post sul blog .. Yet Another 8 CSS Tips For Your Blog Ancora un altro 8 css suggerimenti per il tuo blog

  10. Craig Mullins Craig Mullins Has the following to say... Ha le seguenti dire ...

    Any reason why my web site would not be creating the tags on posts? Qualsiasi ragione per cui il mio sito non sarebbe la creazione di tag a post?

    I added this as you suggested (it’s taken out now): Ho aggiunto questo come lei ha suggerito (è preso ora):

    <?php the_tags(’Tags: ‘, ‘, ‘, ”); ?> <? php the_tags ( 'Tag:', ',', ");?>

    I also tried adding the technorati tags plugin that’s still in there. Ho anche provato ad aggiungere il Technorati Tags plugin che è ancora lì. If you look at the source you will see this: Se si guarda alla fonte vedrete questo:

    So for some reason the template isn’t allowing the tags to go thru. Così per qualche motivo il modello non è il tag che permette di passare attraverso. If I use another template the tags show up… Se si usa un altro modello i tag visualizzati…

    Craig Mullinss last blog post.. Craig Mullinss ultimo post sul blog .. First Things First in Choosing Your Next Home Le cose in ordine nello scegliere la tua prossima casa

  11. admin admin Has the following to say... Ha le seguenti dire ...

    @Craig Mullins - If you use another theme and the tags show up then your theme is mis-coded. @ Craig Mullins - Se si utilizza un altro tema e il tag Mostra fino allora il tema è mis-coded. Search the Wordpress forum for the answer, it probably doesn’t have the normal Wordpress necessary calls - like the one in the footer most likely. La ricerca di Wordpress forum per la risposta, probabilmente non ha il normale necessario invita Wordpress - come quella che il piè di pagina in più probabile.

Question or Comment?? Domanda o commento? Spill it Now... Ricadute che ora ...

Saltare di gioia più di commenti!

We Reward Comments! Siamo ricompensa commenti!


We dofollow links, and get your latest blog post as a byline under every new comment from the "CommentLuv" plugin! Siamo dofollow link e ottenere il vostro ultimo post del blog come sottotitolo ogni nuovo sotto osservazione da parte del "CommentLuv" plug! Top commenters for every month are listed on every page of this site in a sidebar widget linked back to your URL! Top commenters per ogni mese sono riportati su ogni pagina di questo sito in una barra laterale gadget legati al tuo URL! We would like to reward you for becoming part of our community! Vorremmo ricompensa per aver scelto di far parte della nostra comunità! Your comment is valuable not only to us, but also all the other readers of this blog! Il tuo commento è prezioso non solo per noi, ma anche tutti gli altri lettori di questo blog!


Click to add smilies to your post! Fare clic per aggiungere smilies per il tuo post! == []^ = (= ((= (|=) r= | 8= 0=) ~= 00= (=;;=)]=;;;