How to Display Category Specific Content in Wordpress Come per visualizzare il contenuto specifica categoria 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 Una cosa che amo di Wordpress è la grande flessibilità che offre in termini di progettazione temi personalizzati e per questo tutto il merito va a Wordpress Template Tags Tag modello . .

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. Recentemente mi sono imbattuto in un problema in cui ho voluto monetizzare i posti nella mia categoria Gadgets con gli annunci TTZmedia mantenendo i normali annunci AdSense di Google su tutti gli altri posti. This is when I found the Questo è quando ho trovato il in_category in_category template function which lets you display category specific content in Wordpress. modello di funzione che consente di visualizzare contenuti specifici di categoria in Wordpress.

The function is simple and very easy to use. La funzione è semplice e molto facile da usare. Just use it in the Loop on any template file and it should work file. Basta usare nel loop su qualsiasi modello di file e dovrebbe funzionare 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: Informazioni più dettagliate e gli esempi si possono trovare sul link qui sotto:

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. Ciò può essere utile per monetizzare i post di alcune categorie di annunci specifici e può anche essere utilizzato per visualizzare informazioni su una particolare categoria.

A live implementation of this template function can be seen here on Sizlopedia. Una realizzazione dal vivo di questo modello la funzione può essere visto qui su Sizlopedia. If you visit any post that belongs to the Se si visita un post che appartiene al Gadgets Gadget category you will see targeted product ads while in other cases you will see the normal Google Adsense ads. categoria potrete vedere gli annunci con targeting prodotto, mentre in altri casi potrete vedere le normali annunci AdSense di Google.

  • Thats a good trick. Thats un buon trucco. You can also use templates for categories, then you can style or display information specific to that category È inoltre possibile utilizzare i modelli per le categorie, allora si può stile o visualizzare le informazioni specifiche per questa categoria
  • Thanks a lot its really gonna help me in my search for latest stumbles for my site. Thanks a lot its really gonna aiutarmi nella mia ricerca per inciampa più tardi per il mio sito.
  • Interesting guide. Interessante guida. Thanks for the detailed guide on how to embed Google Adsense Ads to categories. Grazie per la guida dettagliata su come incorporare annunci AdSense di Google per categorie. Is there other parts in Wordpress where you can embed Ads? C'è altre parti in Wordpress dove si possono inserire gli annunci?
  • @Rommel @ Rommel

    The best position to embed Google ads is above the content and below the title of article. La posizione migliore per incorporare gli annunci di Google è al di sopra del contenuto e sotto il titolo dell'articolo. There you get the highest click through rates. Ci si ottiene il più alto scegliere attraverso i tassi.
  • Thank you for this information. Grazie per questa informazione. :) :)
blog comments powered by Disqus commenti del blog powered by Disqus