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 Een ding I liefde over Wordpress is de grote flexibiliteit die het biedt op het gebied van het ontwerpen op maat voor deze thema's en alle eer gaat naar Wordpress Template Tags Sjabloontags . .
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. Onlangs stuitte ik op een probleem waar ik wilde de berichten in mijn categorie met gadgets TTZmedia advertenties terwijl de normale Google Adsense advertenties op alle andere posten inkomsten te genereren. This is when I found the Dit is wanneer ik vond de in_category in_category template function which lets you display category specific content in Wordpress. template functie waarmee je elkaar categorie specifieke inhoud in Wordpress.

The function is simple and very easy to use. De functie is eenvoudig en zeer makkelijk te gebruiken. Just use it in the Loop on any template file and it should work file. Gebruik het in de Loop op een template bestand en het zou moeten werken bestand.
<?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: Meer gedetailleerde info en voorbeelden zijn te vinden op de onderstaande link:
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. Dit kan nuttig zijn om berichten van bepaalde categorieën met specifieke advertentie inkomsten te genereren en kan ook worden gebruikt om informatie weer te geven over een bepaalde categorie.
A live implementation of this template function can be seen here on Sizlopedia. Een live uitvoering van dit sjabloon functie is hier te zien op Sizlopedia. If you visit any post that belongs to the Als u een bezoek elk bericht dat behoort tot de Gadgets Gadgets category you will see targeted product ads while in other cases you will see the normal Google Adsense ads. categorie ziet u gerichte advertenties product, terwijl in andere gevallen zult u de normale Google Adsense advertenties.
















