Unlimited $1.99 domain names - We use goDaddy غير محدود أسماء النطاقات 1.99 دولار -- ونحن نستخدم (GoDaddy.com)
Powered by MaxBlogPress مدعوم من MaxBlogPress

وورد هاك # 15 : التقطيع وورد بطاقات | JTPRATT 'sالتدوين الأخطاء
JTPratt 'sأخطاء المدونات





Home المنزل » Wordpress Hack #15: Hacking Wordpress Tags »وورد هاك # 15 : التقطيع وورد العلامات



Wordpress Hack #15: Hacking Wordpress Tags وورد هاك # 15 : التقطيع وورد العلامات

1,087 views - 1.087 جهات النظر --

Posted in: نشر في :

بلوق بين الإعداد فئة الصورةووردبرس] فئة الصورة
1,087 views 1.087 آراء


Please note: This page was originally written in English. الرجاء ملاحظة : هذه الصفحة كان أصلا مكتوب باللغة الانكليزية.

The original post can be viewed الأصلي بعد ويمكن النظر إلى here هنا .

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! واليوم سنقوم تعلم كيف تضيف علامة لدعم موضوع القرصنة وورد الخاص بك!

This is day #15 of هذا هو اليوم من # 15 30 Wordpress Hacks in 30 Days 30 المأجورون وورد في 30 أيام .

If you’re using Wordpress 2.3x or 2.5 or higher you have the ability to use “tags”. إذا كنت تستخدم وورد 2.3x أو 2.5 أو أعلى لديك القدرة على استخدام "العلامات". If you use social media at all, you should already know what a tag is. إذا كنت تستخدم والاجتماعية في جميع وسائل الإعلام ، يجب أن نعرف ما هي العلامة. Basically it’s just a piece of metadata, a “descriptor” of some kind. أساسا انها مجرد قطعة من البيانات الوصفية ، "واصف" من نوع ما. When you blog, it’s also another way to pigeonhole and file your content. عندما لكم بلوق ، وانها أيضا وسيلة أخرى لملف برج الحمام والمحتوى الخاص بك. 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. تنفيذ العلامات في وورد مهم جدا ، لأنه منع الناس من "باستخدام فئات حسب العلامات" كما الكثيرون منا القيام به على مر السنين. 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. وكانت هناك العشرات من المحمول المتاحة لإضافة العلامات إلى وورد الخاص بك بلوق ، ولكن الآن كل ما هو الوظيفية المتاحة دون استخدام أي المحمول على الإطلاق.

Think of categories as high level descriptions. كما اعتقد من فئات عالية المستوى أوصاف. What do you like to blog about? وماذا عن مثل لبلوق؟ Movies, Music, Politics, and Web Design. أفلام ، موسيقى ، السياسة ، وتصميم الموقع. Those are categories. تلك هي الفئات. However, when you blog - the tags would be Obama, John Candy, AC/DC, and HTML. ومع ذلك ، عندما لكم بلوق -- العلامات سيكون أوباما ، جون كاندي ، جيم / العاصمة ، وهتمل. Get it? تحصل عليه؟ All you have to do is enter description tags when you blog, along with a category. كل ما عليك القيام به هو دخول وصف العلامات عند لكم بلوق ، إلى جانب فئة. Now you’re probably wondering, what do I do with that information? الآن أنت ربما يتساءل ، ما الذي أفعله مع أن المعلومات؟

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. واعتمادا على كيفية القديم الخاص بك الموضوع هو أنه قد تكون أو لا تكون "بطاقة دعم" ، وهو ما يعني أنه قد لا يكون مشفرة لفعل أي شيء على الإطلاق مع تلك العلامات أنك تدخل. The first thing you can do is to add a (now famous) “tag cloud” in your side bar like I did, with this code: أول شيء يمكن عمله هو إضافة (الشهير الآن) "علامة سحابة" في جانبكم كما فعلت نقابة المحامين ، مع هذا الرمز :

 <?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; ?> 

If you want to know more about how that codes works and how you can modify it, visit the إذا كنت تريد معرفة المزيد عن الكيفية التي يعمل المدونات وكيف يمكن تعديله ، زيارة Wordpress Codex Tag Cloud Page وورد الدستور الغذائي علامة سحابة الصفحة .

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). آخر شيء يمكن عمله هو أن تضيف العلامات كنت تحت حسابك بعد ذلك بإضافة بعض رمز لsingle.php الملف الخاص بك (لوظيفة واحدة). You could do it on your index.php home page as well, but I don’t much see the point in that. هل يمكن القيام بذلك index.php الخاص بك على صفحة الاستقبال أيضا ، ولكن أنا لا انظر كثيرا في تلك النقطة. 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. اضغط على إحدى الروابط في منصبي (لفئة) أو علامة بلدي سحابة وسترى (مثل الكثير من الفئة صفحة) غني الى "علامة" صفحة ، أو شيء من هذا القبيل site.com/tag/wordpress- الإختراق.

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. وورد أن يكون التقصير سوف تبحث عن "tag.php" ملف (أن معظم المواضيع التي ليس لديها) ، وإذا كان هناك واحد لا archive.php الخاص بك وسوف تستخدم بشكل افتراضي. You could just leave this as-is, or create your own custom “tag.php” to make your tag pages unique. هل يمكن ترك هذا فقط كما هو بين ، أو خلق المخصص الخاص بك "tag.php" يصبح لديك علامة صفحات فريدة من نوعها. 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. وقد مزيد من المعلومات عن خلق العرف tag.php الملف الخاص بك للموضوع.

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: العلامات : , ، , ، , ، , ، , ،

11 Responses to “Wordpress Hack #15: Hacking Wordpress Tags” 11 الردود على "وورد هاك # 15 : التقطيع العلامات وورد"

  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.. فريد articless الماضي بعد انتهاء بلوق.. 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 Erikas الماضي بعد انتهاء بلوق.. 1

  3. CJ 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’sa 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. لقد مضيفا طن على بلدي بلوق وwordpress.com لم أر أي مشاكل. 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.. CJs الماضي بعد انتهاء بلوق.. Sorbs أشجار السورب

  4. CJ CJ Has the following to say... وقد التالي ليقول...

    Update: تحديث :

    Just spent the past few days studying up on tags, technorati, and other blog search engines. فقط أنفقت خلال الايام القليلة الماضية على دراسة العلامات ، ستثمبليوبون ، بلوق وغيرها من محركات البحث.

    First, we all should be using the rel-”tag” (note that - should be an أولا ، ينبغي لنا جميعا أن يكون استخدام rel بين "العلامة" (علما أن -- ينبغي أن يكون = sign) on all our links that have key words. التوقيع) ، على كل الروابط التي كانت الكلمات الأساسية. Many of those links you may not want to have a tag for your visitors to follow. وكثير من هذه الروابط قد لا نريد ان تكون لدينا علامة لزوار موقعك متابعة. This works well with blog search engines, also. هذا ويعمل جيدا مع بلوق محركات البحث ، أيضا. This allows your keywords to be tagged without needing to put a tag at the bottom of your post ويتيح ذلك لتكون كلماتك الرئيسية الموسومة دون الحاجة الى وضع علامة في أسفل رسالتك

    Remember that technorati uses + while wordpress uses - between words. أن نتذكر أن يستخدم ستثمبليوبون + في حين يستخدم ووردبرس] -- بين الكلمات. 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. ستثمبليوبون يستخدم أيضا -- للالعلامات ولكنها ليست العلامات الأولية ، وبالتالي متعدد كلمة علامة على ستثمبليوبون worda ينبغي أن يكون wordb + + في حين أن wordc سيكون worda - wordb - wordc على ووردبرس].

    Here’s the problem. ها هي مشكلة.
    You cannot link within a post to your technorati tag (worda+wordb+wordc) because wordpress will remove the + and you get wordawordbwordc لا يمكنك ربط داخل وظيفة الى حسابك ستثمبليوبون علامة (worda + wordb + wordc) بسبب ووردبرس] سيزيل + وتحصل wordawordbwordc

    Not what you really want. ليس هذا ما كنت حقا تريد.

    Let me see if I can make this clearer. واسمحوا لي ان ارى اذا كنت استطيع جعل هذا وضوحا.
    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? قد ترغب في وصلة الكلمات الرئيسية ولكن ليس بعد ترك موقعك وليس لها أي وظيفة حقيقية لربط ل، وبالتالي لكم أن الحب لربط إلى أن العلامة ، أليس كذلك؟ 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. حسنا ، لأنه قد يكون علامة على قدم المساواة لستثمبليوبون تريد لنا "+" بين الكلمات ، ولكنك لا تستطيع أن تفعل ذلك في وصلة ووردبرس]. Wordpress will remove the +. وورد سيزيل +.
    The only way to link keywords to a tag page in wordpress is to seperate words with a - والطريقة الوحيدة لربط الكلمات الرئيسية إلى علامة في صفحة ووردبرس] هو الفصل بين الكلمات مع (أ) --
    That’s the same way wordpress sees your tags, categories, and everything else. وهذا بنفس الطريقة ووردبرس] ترى العلامات الخاصة بك ، والفئات ، وكل شيء آخر. WordPress always uses - while technorati used 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 الطريق الحقيقي الوحيد للبقاء على موقعك واستخدام + هو ربط الكلمات الرئيسية إلى وظيفة البحث (مثل وصلة الى طبيعته ولكن مع نهاية index.php؟ ق = wordsa + wordb "rel بين" علامة ") وهذا سوف يسبب ذلك الحين وظيفة البحث على موقعك لأن المعلمة الكلمات في وصلة

    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. هذا هو طريق طويل لأقول ، لم وردبرس] هل سوف يكون لها علامة "صفحة" التي هي على قدم المساواة إلى tchnorati العلامة بسبب ووردبرس] لا تسمح باستخدام + باعتباره الفاصل بين الكلمات.

    CJs last blog post.. CJs الماضي بعد انتهاء بلوق.. Akismet Spam Akismet بريد مزعج

  5. Make Online Money جعل المال على الانترنت Has the following to say... وقد التالي ليقول...

    Nicely done. طيف من عمله. Most of my blog ‘marketing’ is done through social bookmarking. أكثر من بلدي بلوق 'التسويق' يتم من خلال إشارة مرجعية اجتماعية. (I use socialmarker.com to broadcast to multiple bookmarking sites at once.) I really like your ideas here. (أنا لاستخدام socialmarker.com بث إشارة مرجعية لمواقع متعددة في وقت واحد.).. واحب أفكارك هنا.

    Make Online Moneys last blog post.. جعل أون لاين الفلوس الماضي بعد انتهاء بلوق.. Profit from Poo الربح من Poo

  6. Trying Hard تحاول جاهدة Has the following to say... وقد التالي ليقول...

    I’ll consider adding something like the tag cloud, but I really don’t like the look of it. سوف تنظر في إضافة شيء مثل بطاقة سحابة ، لكنني حقا لا مثل لها أن ننظر لل. I’d prefer it to show the more popular tags increasingly darker and darker, but the same font. انني افضل لأنها تظهر العلامات أكثر شعبية متزايدة أكثر قتامة وأكثر قتامة ، ولكن نفس الخط. Any chance you’ve seen one like this I could use? أي فرصة كنت قد ينظر إلى مثل هذا أنا واحد يمكن استخدام؟

    Trying Hards last blog post.. وتحاول الخشن الماضي بعد انتهاء بلوق.. Preparing Safety Posts إعداد سلامة وظائف

  7. Chris Hunt كريس هانت Has the following to say... وقد التالي ليقول...

    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. تحاول جاهدة -- محاولة تركيب "العلامات البسيطة" البرنامج المساعد ، تسمح لك مواصفات ظهور بطاقة السحب والقيام بكل أنواع الأشياء الأخرى ذكية مع العلامات.

  8. Trying Hard تحاول جاهدة Has the following to say... وقد التالي ليقول...

    I’ll check that out. سوف تحقق من ذلك. Thanks. شكرا.

    Trying Hards last blog post.. وتحاول الخشن الماضي بعد انتهاء بلوق.. Multiple Ideas Mashed Into One Topic هرس إلى أفكار متعددة في موضوع واحد

  9. Blog for Beginners بلوق نيئدتبملل Has the following to say... وقد التالي ليقول...

    I am yet to see the benefit of using tag cloud. أنا لم انظر صالح للاستخدام بطاقة السحب. Maybe I’m wrong but for now I don’t like to clutter my sidebar with it. ربما أكون مخطئا ولكن الآن لأنا لا أحب إلى فوضى بلادي الشريط الجانبي معها.

    Blog for Beginnerss last blog post.. بلوق لBeginnerss الماضي بعد انتهاء بلوق.. Yet Another 8 CSS Tips For Your Blog آخر المغلق 8 نصائح لجهودكم بلوق

  10. Craig Mullins كريج مولينز Has the following to say... وقد التالي ليقول...

    Any reason why my web site would not be creating the tags on posts? أي سبب في موقعي على الشبكة لن يكون خلق العلامات على وظيفة؟

    I added this as you suggested (it’s taken out now): وأضفت هذه كما اقترحتم (انها أخرجت الآن) :

    <?php the_tags(’Tags: ‘, ‘, ‘, ”); ?> <؟ php the_tags ( 'العلامات :' ، '،' ، ") ؛؟>

    I also tried adding the technorati tags plugin that’s still in there. أنا أيضا حاولت واضاف ان البرنامج المساعد ستثمبليوبون العلامات التي لا تزال في هناك. If you look at the source you will see this: اذا نظرتم الى مصدر سترون هذا :

    So for some reason the template isn’t allowing the tags to go thru. ذلك لسبب ما القالب لا يسمح العلامات من خلال الذهاب. If I use another template the tags show up… وإذا كان لي أن استخدام نموذج آخر العلامات تظهر...

    Craig Mullinss last blog post.. كريج Mullinss الماضي بعد انتهاء بلوق.. First Things First in Choosing Your Next Home أول الأشياء أولا في اختيار الخاصة بك القادم الصفحة الرئيسية

  11. admin الادارية Has the following to say... وقد التالي ليقول...

    @Craig Mullins - If you use another theme and the tags show up then your theme is 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. ابحث في منتدى لوورد الجواب ، ربما لا تملك العادية وورد اللازمة يدعو -- مثل واحد في الذيل على الأرجح.

Question or Comment?? السؤال أو التعليق؟؟ Spill it Now... انسكاب الآن...

القفز للفرح أكثر من التعليقات!

We Reward Comments! نحن مكافأة تعليقات!


We dofollow links, and get your latest blog post as a byline under every new comment from the "CommentLuv" plugin! نحن dofollow الروابط ، وإحصل على أحدث ما بعد بلوق بوصفها الخط الثانوي تحت كل تعليق من جديدا "CommentLuv" البرنامج المساعد! Top commenters for every month are listed on every page of this site in a sidebar widget linked back to your URL! أعلى commenters كل شهر لترد على كل صفحة من هذا الموقع في الشريط الجانبي القطعة مرتبطة العودة إلى وصلتك! 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! انقر لإضافة الابتسامات إلى حسابك في ما بعد! == []^ = (= ((= (|=) ص= | 8= 0=) ~= 00= (= ؛ ؛=)]= ؛ ؛ ؛