Onbeperkte $1.99 domeinnamen - wij gebruiken goDaddy
Aangedreven door MaxBlogPress

De Houwer van Wordpress #15: Binnendringende in een beveiligd computersysteem Markeringen Wordpress | De Fouten Blogging van JTPRATT
De Fouten van Blogging van JTPratt


Huis “ Wordpress Houwer #15: Binnendringende in een beveiligd computersysteem Markeringen Wordpress



Gepost in:

het beeld van de blog-opstellingscategorie wordpress categoriebeeld
283 meningen


Gelieve van nota te nemen: Deze pagina werd oorspronkelijk geschreven in het Engels.

De originele post kan worden bekeken hier.

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.


Vandaag zullen wij leren hoe te om de Steun van de Markering toe te voegen door uw thema te binnendringen in een beveiligd computersysteem Wordpress!

Dit is dag #15 van 30 Houweren Wordpress in 30 Dagen.

Als u Wordpress 2.3x gebruikt of 2.5 of hoger u hebben de capaciteit om „markeringen“ te gebruiken. Als u sociale media bij allen gebruikt, zou u reeds moeten weten wat een markering is. Fundamenteel is het enkel een stuk meta-gegevens, een „beschrijver“ van één of andere soort. Wanneer u blog, het ook een andere manier aan pigeonhole bent en uw inhoud indient. De implementatie van markeringen in Wordpress is zeer belangrijk, omdat het mensen van „het gebruiken van categorieën als markeringen“ houdt aangezien velen van ons in de loop van de jaren hebben gedaan. Er waren dozens beschikbare plugins om markeringen aan uw Wordpress toe te voegen blog, maar nu is al dat functionaliteit beschikbaar zonder enige plugins bij allen te gebruiken.

Denk aan categorieën als beschrijvingen op hoog niveau. Van wat houdt u aan blog ongeveer? Movies, Muziek, Politiek, en het Ontwerp van het Web. Die zijn categorieën. Nochtans, wanneer u blog - de markeringen zouden Obama, John Candy, AC/DC, en HTML zijn. Krijg het? Allen u moet doen is ingaat beschrijvingsmarkeringen wanneer u blog, samen met een categorie. Nu bent u waarschijnlijk benieuwd, wat ik doet met die informatie?

Afhankelijk van hoe oud uw thema is kan het of kan „markerings geen steun“ hebben, wat betekent dat het niet zou kunnen worden gecodeerd om om het even wat bij allen met die markeringen te doen u ingaat. Het eerste ding u kunt doen moet toevoegen een (nu beroemde) „markeringswolk“ in uw zijstaaf als ik, met deze code:

<? php als (function_exists („wp_tag_cloud“)): ?>
<Li>
<h2> populaire Markeringen< /h2>
<ul>
<? php wp_tag_cloud („smallest=8&largest=22“); ?>
</ul>
</li>
<? php endif; ?>

Als u meer over wilt kennen hoe die codes werkt en hoe u het kunt wijzigen, bezoek De Pagina van de Wolk van de Markering van de Codex van Wordpress.

Een ander ding u kunt doen moet de markeringen toevoegen u onder uw post door één of andere code aan uw single.php- dossier gebruikte (voor enige posten) toe te voegen. You could do it on your index.php home page as well, but I don’t much see the point in that. 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:

<?php the_tags('<p>Tags: ', ', ', '</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). 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.

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. You could just leave this as-is, or create your own custom “tag.php” to make your tag pages unique. One way to do this would be to add a “tag cloud” to the top of each tag page. The Wordpress Codex Tag Page has more information on creating a custom tag.php file for your theme.

This post was all about “how to add tag support to your Wordpress theme”. In a future post, I’ll show you what you need to know about tagged pages and Wordpress SEO. As always, if you have something to add to make this post better, or a question - comment now!


Tags: , , , , ,

3 Responses to “Wordpress Hack #15: Hacking Wordpress Tags”

  1. unique articles Has the following to say...

    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.

    Really like that and keep up the good work :)

    unique articless last blog post..The Art Of Online Writing

  2. Erika Has the following to say...

    LOL I was just looking for this yesterday! Thanks for the little tidbit!

    Erikas last blog post..1

  3. CJ Has the following to say...

    Categories are nice to start your site off. Use the descriptions of the categories to add keyword content like JT talks about and then the tags to get specific. I don’t add tags till I have some pages going. . . looks bad to have one post in ten places.

    I haven’t found a problem with duplicate content using tags. I know it’s a big topic but google seems to be ok with tags. I’ve been adding tons on my wordpress.com blog and haven’t seen any problems. 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.

    CJs last blog post..Sorbs

Question or Comment?? Spill it Now...

Jumping for Joy over comments!

We Reward Comments!


We dofollow links, and get your latest blog post as a byline under every new comment from the "CommentLuv" plugin! Top commenters for every month are listed on every page of this site in a sidebar widget linked back to your URL! We would like to reward you for becoming part of our community! Your comment is valuable not only to us, but also all the other readers of this blog!

 


Click to add smilies to your post! = =[] ^=( =(( =(| =)r =|8 =0 =)~ =00 =( =;; =)] =;;;