How to Display Category Specific Content in Wordpress Hoe Categorie Specifieke inhoud in Wordpress

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:

http://codex.wordpress.org/Template_Tags/in_category 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. 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.

  • Thats a good trick. Dat is een goede truc. You can also use templates for categories, then you can style or display information specific to that category U kunt ook gebruik maken van templates voor de categorieën, dan kun je stijl of display specifieke informatie voor die categorie
  • Thanks a lot its really gonna help me in my search for latest stumbles for my site. Thanks a lot its really gonna me helpen in mijn zoektocht naar laatste struikelt voor mijn site.
  • Interesting guide. Interessante gids. Thanks for the detailed guide on how to embed Google Adsense Ads to categories. Bedankt voor de gedetailleerde handleiding over hoe te verankeren Google AdSense-advertenties op groepen. Is there other parts in Wordpress where you can embed Ads? Is er andere onderdelen in Wordpress, waar u kunt insluiten advertenties?
  • @Rommel @ Rommel

    The best position to embed Google ads is above the content and below the title of article. De beste positie voor het insluiten van Google-advertenties is boven de inhoud en onder de titel van het artikel. There you get the highest click through rates. Daar krijg je de hoogste click through rates.
  • Thank you for this information. Dank u voor deze informatie. :) :)
blog comments powered by Disqus blog comments powered by Disqus