One thing I love about Wordpress is the great flexibility it offers in terms of designing custom themes and for this all the credit goes to Wordpress شيء واحد أنا عن الحب وورد هو قدرا كبيرا من المرونة التي تقدمها في مجالات تصميم وعرف عن هذه المواضيع وجميع الفضل في ذلك إلى وورد Template Tags قالب العلامات .
Recently I ran into a problem where I wanted to monetize the posts in my Gadgets category with TTZmedia ads while keeping the normal Google Adsense ads on all other posts. وفي الآونة الأخيرة تعرضت لمشكلة عندما أردت أن دخل مالي وظيفة في بلدي أدوات فئة مع TTZmedia إعلانات في حين حفظ العادية Google Adsense إعلانات عن جميع الوظائف الأخرى. This is when I found the هذا هو عندما وجدت in_category template function which lets you display category specific content in Wordpress. قالب الوظيفة التي تتيح لك عرض محتوى فئة معينة في وورد.

The function is simple and very easy to use. وظيفة بسيطة جدا وسهلة الاستخدام. Just use it in the Loop on any template file and it should work file. مجرد استخدامها في قم بالالتفاف على أي ملف قالب وينبغي لها أن تعمل ملف.
<?php if ( in_category('category_id') ): ?>
// Some category specific PHP/HTML here
<?php endif; ?>
More detailed info and examples can be found on the link below: معلومات أكثر تفصيلا ويمكن العثور على أمثلة على الوصلة التالية :
http://codex.wordpress.org/Template_Tags/in_category
This can be helpful to monetize posts from certain categories with specific ads and can also be used to display information about a particular category. وهذا يمكن أن يكون مفيدا لنقد وظائف من فئات معينة محددة مع الإعلانات ويمكن أن تستخدم أيضا لعرض المعلومات عن فئة معينة.
A live implementation of this template function can be seen here on Sizlopedia. ألف العيش تنفيذ هذا القالب وظيفة ويمكن ملاحظة هنا على Sizlopedia. If you visit any post that belongs to the إذا زرت أي بعد أن تنتمي إلى Gadgets أدوات category you will see targeted product ads while in other cases you will see the normal Google Adsense ads. الفئة المستهدفة سترى إعلانات المنتجات بينما في حالات أخرى سترى العادية Google Adsense الإعلانات.















Thats a good trick. Thats جيدة خدعة. You can also use templates for categories, then you can style or display information specific to that category يمكنك أيضا استخدام نماذج لفئات ، ثم يمكنك عرض معلومات أو أسلوب محدد لهذه الفئة
Thanks a lot its really gonna help me in my search for latest stumbles for my site. وبفضل الكثير دورته حقا ساعدتنى بلادي في البحث عن الزلات آخر لموقعي.
Interesting guide. دليل للاهتمام. Thanks for the detailed guide on how to embed Google Adsense Ads to categories. شكرا للالدليل المفصل على كيفية تضمين إعلانات Google Adsense إلى فئات. Is there other parts in Wordpress where you can embed Ads? هل هناك أجزاء أخرى في وورد حيث يمكنك تضمين الإعلانات؟
@Rommel @ روميل
The best position to embed Google ads is above the content and below the title of article. أفضل وضع لترسيخ إعلانات Google فوق ومحتوى أقل من عنوان المادة. There you get the highest click through rates. وهناك تحصل على أعلى معدلات من خلال النقر.