Subscribe to RSS feed आरएसएस फ़ीड की सदस्यता लें or या follow me मुझे का पालन करें on Twitter? पर चहचहाना?
Duplicate content is a serious issue for all WordPress blogs, and most bloggers now employ different methods to show partial content. डुप्लिकेट सामग्री सभी WordPress ब्लॉगों के लिए एक गंभीर मुद्दा है, और सबसे ब्लॉगर्स अब विभिन्न तरीकों को रोजगार के लिए आंशिक सामग्री दिखाओ. 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. अच्छा खोज रैंकिंग जो पूर्ण पदों को रोजगार के साथ ही ब्लॉग है, आमतौर पर अधिकार ब्लॉग है, जो सुरक्षित और Google के कलन विधि द्वारा प्राधिकृत के रूप में लेबल हो रहे हैं.
Plugins are a popular method to reduce duplicate content. Plugins एक लोकप्रिय तरीका नकल सामग्री को कम कर रहे हैं. However, plugins are not लेकिन हो नहीं, plugins fully optimized पूरी तरह से अनुकूलित , and consumes more server resources than the simple <?php the_excerpt() ?> tag. , और सरल <?php the_excerpt() ?> टैग <?php the_excerpt() ?> से अधिक सर्वर के संसाधनों की खपत. Moreover, excerpt tag can use the customized post summary that you may have written. इसके अलावा, अंश टैग इच्छित पद सार है कि तुम लिखा सकते हैं उपयोग कर सकते हैं.
In this short tutorial, you should have all the template files in one place. इस ट्यूटोरियल में कम, तुम सब एक ही स्थान पर फ़ाइलों टेम्पलेट चाहिए. Once you have those files(probably downloaded from your server, or a local copy that you keep), follow these easy steps: एक बार जब आप उन फ़ाइलों है (शायद आपके सर्वर, या एक स्थानीय प्रतिलिपि कि तुम रखने से डाउनलोड), इन आसान चरणों का पालन करें:
- Open up
index.php,archive.phpandsearch.phpखुलाindex.php archive.phpऔरsearch.phpअप - In each of these files, search and find the code bit that contains
<php the_contentइन फ़ाइलों, खोज में से प्रत्येक में और खोज कोड सा होता है कि<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: पूरे टैग बदलें - आमतौर पर <? (__(' Php the_content इस प्रविष्टि के बाकी पढ़ें'));?> (विषय के आधार पर बदल सकता है, लेकिन ऐसी ही होगा), इस टैग के साथ:
<?php the_excerpt();?> <? php the_excerpt ();?>
Save the files. फ़ाइलों को सहेजें. - Open up
index.phpagain, and save it ascategory.php(do not discardindex.php). खोलो फिरindex.phpऔर इसे बचाने केcategory.phpके रूप में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. इसके बाद के संस्करण चरणों में, हम अंश टैग के साथ टैग की सामग्री जगह ले ली है ताकि केवल पोस्ट की छोटी पैराग्राफ पोस्ट पेज से दूसरे पेज पर दिखाया जाता है. Most themes lack a category.php , and its absence can allow full posts on category pages. ज्यादातर विषयों एक category.php कमी है, और उसकी अनुपस्थिति श्रेणी के पन्नों पर पूर्ण पदों की अनुमति कर सकते हैं. By duplicating the index.php file(which has excerpt tag), that problem is also solved. index.php फ़ाइल duplicating के द्वारा (जो अंश टैग है), कि समस्या भी हल है.
Open Mic खुला Mic
How do you prevent duplicate content? आप डुप्लिकेट सामग्री कैसे रोकूँ? Do you use this method, or any plugins? क्या आप इस पद्धति का, या किसी भी 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). यदि हां, तो तुम क्यों यह अंश टैग? ज्यादा पसंद करते हैं (मैं सुनना पसंद है, के रूप में मैं खुद को उलझन में हूँ चाहते हैं जो विधि को चुनने में). Do tell me your views through comments. मुझे टिप्पणियों के माध्यम से मत कहो अपने विचार.
Related reading संबंधित पठन
- Plugins to enhance WordPress tagging Plugins WordPress टैगिंग बढ़ाने के लिए
- Search and remove duplicate files with Duplicate File Searcher खोज और हटाने के डुप्लिकेट फ़ाइल खोजकर्ता के साथ डुप्लिकेट फ़ाइलें
- Check Places Firefox addon checks offline and duplicate bookmarks जांच Places Firefox addon चेक ऑफ़लाइन और नकली बुकमार्क्स
- Free GIMP plugins नि: शुल्क जिम्प plugins
This is exactly what I have been doing. यह ठीक है कि मैं क्या कर रहा है. Use post excerpts. का प्रयोग करें बाद के कुछ अंशः.
@Nirmal: Glad to hear your opinion. निर्मल @: अपनी राय सुनना अच्छा लगा. Could you be more specific as to why you prefer it? तुम हो सकता है के रूप में अधिक विशिष्ट तुम यह क्यों करना चाहते हैं?
Funny to run into this, I'd just blogged about something similar yesterday! इस में भाग अजीब बात है, मैं अभी कल ही कुछ के बारे में blogged था! And you did this 2 days earlier – guess it was a repeat for you to read my feed then! और तुम इस 2 दिन पहले किया था - लगता है कि यह एक दोहराने के लिए गया था तुम मेरे फ़ीड पढ़ने के लिए तो!
[Goes over to subscribe to your feed] [खत्म हो जाता है अपनी फ़ीड की सदस्यता]
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!). लेकिन मैं सिर्फ एक स्पष्टीकरण हालांकि - तुम category.php की ज़रूरत नहीं होगी करना अगर तुम archive.php या index.php है (अरे, आप निश्चित रूप से यह एक है! हूँ) करना चाहते हैं. 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 मैं मतलब था - अगर तुम index.php पर कुछ अंशः दिखाने जा रहे हैं क्या, तुम कर archive.php और category.php पूरी तरह से बचने के - मुझे मत पूछो क्यों नहीं कर सकते, तो आप अपने webspace पर 4kb बचाता है
The order is: आदेश है:
1. 1. category-xx.php श्रेणी-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. यदि आप एक विशेष श्रेणी करना चाहते हैं अद्वितीय देखो, तुम वर्ग के साथ एक फ़ाइल CATEGORYNUMBER.php बना सकते हैं और उस विशेष वर्ग का अनुसरण करेंगे इस खाके. If it doesn't find this file, it will check if the next file in the hierarchy is there and so on. यदि यह इस फाइल नहीं मिल रहा है, यह जाँच करेगा अगर क्रम में अगले फाइल वहाँ और बहुत पर है.
Sorry about the overly long comment, I had to make myself clear! पीढ़ी तक कोई टिप्पणी के बारे में क्षमा करें, मैं खुद को साफ करना था!
@Karthik: No problem whatsoever about long comments – I love 'em! कार्तिक @: लंबे समय के बारे में टिप्पणी नहीं, जो भी समस्या - मैं उन्हें प्यार करता हूँ!
Well, that thing about category-xx.php was something new to me, thanks. ठीक है, श्रेणी के बारे में बात-xx.php मेरे लिए कुछ नया था, धन्यवाद. And category no. और श्रेणी में नहीं. means its ID, right? अपनी पहचान, सही है मतलब है?
As for 4kB webspace, lol के रूप में 4kB webspace, योग्य के लिए
Yup, sorry, I should have mentioned ID there! हाँ, माफ करना, मैं वहाँ आईडी उल्लेख किया जाना चाहिए!
@Karthik: No problem, its understood. @ कार्तिक: कोई बात नहीं, अपनी समझ. Now that you've clarified it, readers will also understand. अब कि तुम यह स्पष्ट किया है, पाठकों को भी समझना होगा.
My recommendation would be to do this but also have unique content in the excerpt. मेरी सिफारिश इस अंश में भी अद्वितीय सामग्री है क्या होगा.
I have actually switched categories off entirely and have opted for pages instead. मैं वास्तव में पूरी तरह से बंद है और श्रेणियों के पृष्ठों के लिए जगह का विकल्प चुना है.
(Note the blog above is not an example of this ;-D ) (ऊपर ब्लॉग नोट इस का एक उदाहरण नहीं है, डी)