How To: Solve duplicate content in WordPress without plugins How To: Lösen Sie denselben Inhalt in WordPress ohne Plugins

ADVERTISEMENT WERBUNG
To get our software and web/tips via email, sign up for Um unsere Software-und Web-Tipps per E-Mail, melden Sie sich für daily email newsletter tägliche E-Mail-Newsletter . .
Subscribe to RSS feed Abonnieren Sie RSS-Feed or oder follow me folgen Sie mir! on Twitter? auf Twitter?

Duplicate content is a serious issue for all WordPress blogs, and most bloggers now employ different methods to show partial content. Duplicate Content ist ein ernstes Problem für alle WordPress-Blogs, und die meisten Blogger nun verschiedene Methoden, um Unvollständiger Inhalt. The only blogs with good search rankings which employ full posts, are usually authority blogs, which are labelled as safe and authoritative by Google's algorithm. Die einzige Blogs mit guten Platzierungen, die Suche beschäftigen volle Stellen, sind in der Regel Behörde Blogs, die gekennzeichnet sind als sicher und zuverlässig von den Google-Algorithmus.

Plugins are a popular method to reduce duplicate content. Plugins sind eine beliebte Methode zur Verringerung der denselben Inhalt haben. However, plugins are not Allerdings, Plugins sind nicht fully optimized vollständig optimiert , and consumes more server resources than the simple <?php the_excerpt() ?> tag. Und Server-Ressourcen verbraucht mehr als die einfache <?php the_excerpt() ?> Moreover, excerpt tag can use the customized post summary that you may have written. Darüber hinaus Auszug Tag können die benutzerdefinierte Nachricht Zusammenfassung, die Sie geschrieben haben.

In this short tutorial, you should have all the template files in one place. In diesem kurzen Tutorial, sollten Sie die Template-Dateien an einem Ort. Once you have those files(probably downloaded from your server, or a local copy that you keep), follow these easy steps: Sobald Sie diese Dateien (wahrscheinlich Download von Ihrem Server oder einer lokalen Kopie, die Sie halten), gehen Sie folgendermaßen vor:

ADVERTISEMENT WERBUNG

  • Open up index.php , archive.php and search.php Öffnen Sie index.php archive.php und search.php
  • In each of these files, search and find the code bit that contains <php the_content In jeder dieser Dateien, Suchen und finden, dass die Bit-Code enthält <php the_content
  • Replace the entire tag – usually <?php the_content(__('Read the rest of this entry'));?> (may change depending on theme, but will be similar), with this tag: Ersetzen Sie den gesamten Tag - in der Regel <? Php the_content (__(' Lesen Sie den Rest dieses Eintrags'));?> (kann sich ändern, je nach Thema, wird aber ähnlich), mit diesem Tag:
    <?php the_excerpt();?> <? php the_excerpt ();?>
    Save the files. Speichern Sie die Dateien.
  • Open up index.php again, and save it as category.php (do not discard index.php ). Öffnen Sie index.php erneut, und speichern Sie es als category.php (nicht entledigen index.php

In the above steps, we have replaced the content tag with the excerpt tag so that only a short paragraph of the post is shown on pages other than the post page. In der oben genannten Schritte, wir sind an die Content-Tag mit dem Auszug Tag, so dass nur ein kurzer Absatz der Post ist auf den anderen Seiten als der Post-Seite. Most themes lack a category.php , and its absence can allow full posts on category pages. Die meisten Themen keine category.php und ihre Abwesenheit kann die volle Stellen auf Kategorie-Seiten. By duplicating the index.php file(which has excerpt tag), that problem is also solved. Durch Duplizieren der index.php (mit Auszug Tag), ist auch dieses Problem gelöst.

Open Mic Open Mic

How do you prevent duplicate content? Wie wollen Sie verhindern, dass doppelte Inhalte? Do you use this method, or any plugins? Verwenden Sie diese Methode, oder Plugins? If so, why do you prefer it over the excerpt tag?(I'd like to hear, as I am myself confused at which method to choose). Wenn ja, warum tun Sie es über den Auszug tag? (Ich möchte hören, wie ich mich verwirrt an, welche Methode zu wählen). Do tell me your views through comments. Sie sagen Sie mir Ihre Meinung über Kommentare.

Comments Kommentare
  1. This is exactly what I have been doing. Dies ist genau das, was ich getan haben. Use post excerpts. Verwenden Sie Post-Auszügen.

    Nirmal Nirmal
  2. @Nirmal: Glad to hear your opinion. @ Nirmal: freuen uns über Ihre Meinung. Could you be more specific as to why you prefer it? Könnten Sie etwas konkreter sein, warum Sie es?

    Sumesh Sumesh
  3. Funny to run into this, I'd just blogged about something similar yesterday! Lustig, um in diese, ich würde nur gebloggt über etwas ähnliches gestern! And you did this 2 days earlier – guess it was a repeat for you to read my feed then! Und Sie haben diese 2 Tage früher - schätze, es war eine Wiederholung für Sie zu lesen, dann meinen Feed!
    [Goes over to subscribe to your feed] [Geht zu Ihrem Feed abonnieren]

    But I'd just like to make one clarification though – you won't need category.php if you have archive.php or index.php (err, you'd certainly have this one!). Aber ich würde nur gerne noch eine Klarstellung wenn - Sie brauchen keine category.php, wenn Sie archive.php oder index.php (err, Sie haben diese!). What I meant was – if you are going to show excerpts on index.php, you can avoid having archive.php and category.php altogether – don't ask me why not, saves you 4kb on your webspace Was ich meinte war - wenn Sie wollen zeigen Auszüge auf index.php, können Sie vermeiden, dass archive.php und category.php insgesamt - nicht mich fragen, warum nicht, sparen Sie 4kb auf Ihrem Webspace ;)

    The order is: Die Reihenfolge ist:
    1. 1. category-xx.php Kategorie-xx.php
    2. 2. category.php category.php
    3. 3. archive.php archive.php
    4. 4. index.php index.php

    If you'd like to make one particular category look unique, you can create a file with the category-CATEGORYNUMBER.php and that particular category would follow this template. Wenn Sie möchten, dass zu einem bestimmten Kategorie suchen einzigartig, können Sie eine Datei mit dem Kategorie-CATEGORYNUMBER.php und bestimmten Kategorie würde diese Vorlage. If it doesn't find this file, it will check if the next file in the hierarchy is there and so on. Ist dies nicht der Fall finden diese Datei, wird sie prüfen, ob die nächste Datei in der Hierarchie ist es und so weiter.

    Sorry about the overly long comment, I had to make myself clear! Tut mir leid, die übermäßig langen Kommentar, ich musste mich klar!

    Karthik Karthik
  4. @Karthik: No problem whatsoever about long comments – I love 'em! @ Karthik: Kein Problem, was über lange Kommentare - I love 'em!
    Well, that thing about category-xx.php was something new to me, thanks. Nun, das, was über Kategorie-xx.php war etwas Neues für mich, danke. And category no. Und Kategorie-Nr. means its ID, right? bedeutet, seine ID, oder?
    As for 4kB webspace, lol Was 4kB Webspace, lol : D

    Sumesh Sumesh
  5. Yup, sorry, I should have mentioned ID there! Ja, sorry, ich habe ID gibt!

    Karthik Karthik
  6. @Karthik: No problem, its understood. @ Karthik: Kein Problem, ihr verstanden. Now that you've clarified it, readers will also understand. Sie haben geklärt ist, werden die Leser auch verstehen.

    Sumesh Sumesh
  7. My recommendation would be to do this but also have unique content in the excerpt. Meine Empfehlung wäre, dies zu tun, sondern haben auch einzigartige Inhalte in den Ausschnitt.

    I have actually switched categories off entirely and have opted for pages instead. Ich habe tatsächlich eingeschaltet Kategorien vollständig aus und haben sich für Seiten statt.

    (Note the blog above is not an example of this ;-D ) (Beachten Sie die oben genannten Blog ist nicht ein Beispiel für diese;-D)

    Fred Schebesta Fred Schebesta
Leave a Reply Lassen Sie eine Antwort

If you have a computer/web help question, Wenn Sie über einen Computer / Internet Frage helfen, click here to ask it on our forum Klicken Sie hier, zu fragen, auf unserem Forum for faster response. für eine schnellere Reaktion.